diff --git a/revid/cmd/h264-file-to-flv-rtmp/main.go b/revid/cmd/h264-file-to-flv-rtmp/main.go index 5eba1e4e..5f79df4a 100644 --- a/revid/cmd/h264-file-to-flv-rtmp/main.go +++ b/revid/cmd/h264-file-to-flv-rtmp/main.go @@ -33,7 +33,8 @@ import ( "time" "bitbucket.org/ausocean/av/revid" - "bitbucket.org/ausocean/utils/smartlogger" + "bitbucket.org/ausocean/iot/pi/smartlogger" + "bitbucket.org/ausocean/utils/logger" ) const ( @@ -61,11 +62,11 @@ func main() { RtmpMethod: revid.LibRtmp, RtmpUrl: *rtmpUrlPtr, Packetization: revid.Flv, - Logger: smartlogger.New(logger.Info, logPath), + Logger: logger.New(logger.Info, &smartlogger.New(logPath).LogRoller), } revidInst, err := revid.New(config, nil) if err != nil { - config.log.Log(logger.Error, "Should not have got an error!: ", err.Error()) + config.Logger.Log(logger.Error, "Should not have got an error!: ", err.Error()) return } revidInst.Start() diff --git a/revid/cmd/h264-file-to-mpgets-file/main.go b/revid/cmd/h264-file-to-mpgets-file/main.go index 218940ab..03a39fde 100644 --- a/revid/cmd/h264-file-to-mpgets-file/main.go +++ b/revid/cmd/h264-file-to-mpgets-file/main.go @@ -31,7 +31,8 @@ import ( "time" "bitbucket.org/ausocean/av/revid" - "bitbucket.org/ausocean/utils/smartlogger" + "bitbucket.org/ausocean/iot/pi/smartlogger" + "bitbucket.org/ausocean/utils/logger" ) const ( @@ -52,11 +53,11 @@ func main() { Output1: revid.File, OutputFileName: outputFile, Packetization: revid.Mpegts, - Logger: smartlogger.New(logger.Info, logPath), + Logger: logger.New(logger.Info, &smartlogger.New(logPath).LogRoller), } revidInst, err := revid.New(config, nil) if err != nil { - config.log.Log(logger.Error, "Should not have got an error!:", err.Error()) + config.Logger.Log(logger.Error, "Should not have got an error!:", err.Error()) return } revidInst.Start()