File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -420,7 +420,7 @@ func (c *Connection) getSystem(relData *Vr921RelevantDataStruct) error {
420420 }*/
421421 }
422422 //Added by WW: This block is used during development to analyse the system report return from the Vaillant portal
423- level := util .LogLevelForArea ("sensonet" ).String ()
423+ level := util .WWlogLevelForArea ("sensonet" ).String ()
424424 if level == "DEBUG" || level == "TRACE" {
425425 c .log .DEBUG .Println ("Writing debug information to files debug_sensonet_system.txt and debug_sensonet_reldata.txt" )
426426 fo , ioerr := os .Create ("debug_sensonet_system.txt" )
Original file line number Diff line number Diff line change @@ -140,7 +140,9 @@ func (sh *Switch) Enable(enable bool) error {
140140 d .log .DEBUG .Println ("Starting zone quick veto" )
141141 }
142142 default :
143- d .log .DEBUG .Println ("Enable called but no quick mode possible" )
143+ d .log .INFO .Println ("Enable called but no quick mode possible" )
144+ //d.onoff = false
145+ //return err
144146 }
145147 } else {
146148 switch d .currentQuickmode {
Original file line number Diff line number Diff line change @@ -101,6 +101,11 @@ func logLevelForArea(area string) jww.Threshold {
101101 return level
102102}
103103
104+ // WWlogLevelForArea is used to call the private function logLevelForArea() in sensonet/connection.go for the fork with the sensonet charger
105+ func WWlogLevelForArea (area string ) jww.Threshold {
106+ return logLevelForArea (area )
107+ }
108+
104109// LogLevel sets log level for all loggers
105110func LogLevel (defaultLevel string , areaLevels map [string ]string ) {
106111 // default level
You can’t perform that action at this time.
0 commit comments