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() } }