mirror of https://bitbucket.org/ausocean/av.git
putting smart logger back into the equation
This commit is contained in:
parent
33892f3ff1
commit
81e87b73f6
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue