putting smart logger back into the equation

This commit is contained in:
Saxon1 2018-05-06 01:38:19 +09:30
parent 33892f3ff1
commit 81e87b73f6
1 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ import (
"time"
"bitbucket.org/ausocean/av/revid"
_"bitbucket.org/ausocean/utils/smartLogger"
"bitbucket.org/ausocean/utils/smartLogger"
"bitbucket.org/ausocean/iot/pi/netsender"
linuxproc "github.com/c9s/goprocinfo/linux"
@ -247,7 +247,7 @@ func main() {
config.IntraRefreshPeriod = *configFlags[intraRefreshPeriodPtr]
// Also give the config a logger object
//config.Logger = smartLogger.New(loggerVerbosity, smartLogger.White)
config.Logger = smartLogger.New(loggerVerbosity, smartLogger.White)
time.Sleep(time.Duration(prepTime) * time.Second)
createRevidInstance()
@ -274,7 +274,7 @@ func main() {
func netsenderInit() {
//initialize netsender and assign function to check X pins
//config.Logger = netsender.GetLogger()
config.Logger = netsender.GetLogger()
netsender.Init(false)
netsender.ExternalReader = revidReportActions