From 19222f96995e5af0d57e3a200aa7e36dd13edadc Mon Sep 17 00:00:00 2001 From: Mark Beamer Jr Date: Tue, 1 May 2018 23:08:41 -0400 Subject: [PATCH] -Fixed bug with configuration processing where it would always set debug logging to false. -Changed claimtrie sync to be go routine so it doesn't stop from panic. --- config/config.go | 3 ++- daemon/daemon.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index 2b78bf3..c56bf1e 100644 --- a/config/config.go +++ b/config/config.go @@ -100,8 +100,9 @@ func processConfiguration() { if isdebug { logrus.Info("Setting DebugMode=true") logrus.SetLevel(logrus.DebugLevel) + } else { + logrus.SetLevel(logrus.InfoLevel) } - logrus.SetLevel(logrus.InfoLevel) settings := global.DaemonSettings{ DaemonMode: GetDaemonMode(), diff --git a/daemon/daemon.go b/daemon/daemon.go index 2bcfc36..2d3b4df 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -50,7 +50,7 @@ func initJobs() { t := time.NewTicker(15 * time.Minute) for { <-t.C - jobs.ClaimTrieSync() + go jobs.ClaimTrieSync() } }