about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-06-10 01:05:35 -0400
committerBen Morrison <ben@gbmor.dev>2019-06-10 01:05:35 -0400
commit4648146ad31398aef3f184145a0c9781d31c30cb (patch)
tree9824e1c41b1eb6abd459658a14880156072e8747
parentf86e9b161aff35749e1213cd485d4de7c0da20e6 (diff)
downloadgetwtxt-4648146ad31398aef3f184145a0c9781d31c30cb.tar.gz
changed some log formatting
-rw-r--r--svc/conf.go2
-rw-r--r--svc/init.go2
-rw-r--r--svc/svc.go4
3 files changed, 4 insertions, 4 deletions
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