summary refs log tree commit diff stats
path: root/init.go
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-05-21 22:04:19 -0400
committerBen Morrison <ben@gbmor.dev>2019-05-21 22:04:19 -0400
commitbded77fe18a8acb6397835a836ac68f7435bf3d4 (patch)
tree77e319f53b1d7cb79dc2e5f5a48f44556429ece6 /init.go
parent4f0847bb24a5df77f88c883461491a2f6fd955d7 (diff)
downloadgetwtxt-bded77fe18a8acb6397835a836ac68f7435bf3d4.tar.gz
runtime bugs re: http400 and database reading on startup
Diffstat (limited to 'init.go')
-rw-r--r--init.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/init.go b/init.go
index b898ae8..a6b2aa1 100644
--- a/init.go
+++ b/init.go
@@ -114,9 +114,17 @@ func initConfig() {
 	confObj.port = viper.GetInt("port")
 	confObj.logFile = viper.GetString("logFile")
 	confObj.dbPath = viper.GetString("databasePath")
+	log.Printf("Using database: %v\n", confObj.dbPath)
 	confObj.stdoutLogging = viper.GetBool("stdoutLogging")
+	if confObj.stdoutLogging {
+		log.Printf("Logging to stdout\n")
+	} else {
+		log.Printf("Logging to %v\n", confObj.logFile)
+	}
 	confObj.cacheInterval = dur
+	log.Printf("Cache refresh interval: %v\n", dur)
 	confObj.dbInterval = dbDur
+	log.Printf("Database push interval: %v\n", dbDur)
 	confObj.lastCache = thetime
 	confObj.lastPush = thetime
 	confObj.version = getwtxt