- fix re-connection after connection loss to broker
- add subscribe call after reconnect - additional config settings for timeout values - add more info/warn outputs - change default log level from "warn" to "info"
This commit is contained in:
3
main.go
3
main.go
@@ -12,7 +12,7 @@ import (
|
||||
|
||||
func main() {
|
||||
flagConfig := flag.String("config", "/etc/rpicontrol/rpicontrol.conf", "path to config file")
|
||||
flagLogLevel := flag.String("log", "warn", "set log level for console output")
|
||||
flagLogLevel := flag.String("log", "info", "set log level for console output")
|
||||
|
||||
flag.Parse()
|
||||
|
||||
@@ -20,6 +20,7 @@ func main() {
|
||||
log.SetLevel(log.WarnLevel)
|
||||
log.Warnf("could not set log level. %s", err.Error())
|
||||
} else {
|
||||
|
||||
log.SetLevel(level)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user