Move start up messages to main function

This commit is contained in:
Peter Stuifzand 2018-10-03 18:45:36 +02:00
parent 036152d89e
commit 08257bab25
Signed by: peter
GPG Key ID: 374322D56E5209E8
2 changed files with 5 additions and 4 deletions

View File

@ -114,6 +114,11 @@ func main() {
if createBackend { if createBackend {
backend = createMemoryBackend() backend = createMemoryBackend()
log.Println(`Config file "backend.json" is created in the current directory.`)
log.Println(`Update "Me" variable to your website address "https://example.com/"`)
log.Println(`Update "TokenEndpoint" variable to the address of your token endpoint "https://example.com/token"`)
return return
} }

View File

@ -169,10 +169,6 @@ func createMemoryBackend() microsub.Microsub {
backend.lock.Unlock() backend.lock.Unlock()
backend.save() backend.save()
log.Println(`Config file "backend.json" is created in the current directory.`)
log.Println(`Update "Me" variable to your website address "https://example.com/"`)
log.Println(`Update "TokenEndpoint" variable to the address of your token endpoint "https://example.com/token"`)
return &backend return &backend
} }