From 4648146ad31398aef3f184145a0c9781d31c30cb Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Mon, 10 Jun 2019 01:05:35 -0400 Subject: changed some log formatting --- svc/conf.go | 2 +- svc/init.go | 2 +- svc/svc.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'svc') diff --git a/svc/conf.go b/svc/conf.go index d85bbee..f4d6518 100644 --- a/svc/conf.go +++ b/svc/conf.go @@ -59,7 +59,7 @@ func initLogging() { <-closeLog - log.Printf("Closing log file ...\n") + log.Printf("Closing log file ...\n\n") errLog("Could not close log file: ", logfile.Close()) }(logfile) diff --git a/svc/init.go b/svc/init.go index 6af7866..408a53b 100644 --- a/svc/init.go +++ b/svc/init.go @@ -99,7 +99,7 @@ func watchForInterrupt() { go func() { for sigint := range c { - log.Printf("\n\nCaught %v. Cleaning up ...\n", sigint) + log.Printf("\nCaught %v. Cleaning up ...\n\n", sigint) confObj.Mu.RLock() log.Printf("Closing database connection to %v...\n", confObj.DBPath) diff --git a/svc/svc.go b/svc/svc.go index 102e1ca..6c9ee58 100644 --- a/svc/svc.go +++ b/svc/svc.go @@ -29,8 +29,8 @@ func Start() { server := newServer(portnum, index) - log.Printf("\nListening on %v\n", portnum) - log.Printf("\n:: getwtxt %v Started :: %v ::\n\n", Vers, time.Now().Format(time.RFC3339)) + log.Printf("*** Listening on %v\n", portnum) + log.Printf("*** getwtxt %v Started :: %v ::\n\n", Vers, time.Now().Format(time.RFC3339)) errLog("", server.ListenAndServe()) closeLog <- true -- cgit 1.4.1-2-gfad0