Commit 8e67d09 1 parent 1c62eec commit 8e67d09 Copy full SHA for 8e67d09
File tree 3 files changed +9
-2
lines changed
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -420,7 +420,7 @@ func (c *Connection) getSystem(relData *Vr921RelevantDataStruct) error {
420
420
}*/
421
421
}
422
422
//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 ()
424
424
if level == "DEBUG" || level == "TRACE" {
425
425
c .log .DEBUG .Println ("Writing debug information to files debug_sensonet_system.txt and debug_sensonet_reldata.txt" )
426
426
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 {
140
140
d .log .DEBUG .Println ("Starting zone quick veto" )
141
141
}
142
142
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
144
146
}
145
147
} else {
146
148
switch d .currentQuickmode {
Original file line number Diff line number Diff line change @@ -101,6 +101,11 @@ func logLevelForArea(area string) jww.Threshold {
101
101
return level
102
102
}
103
103
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
+
104
109
// LogLevel sets log level for all loggers
105
110
func LogLevel (defaultLevel string , areaLevels map [string ]string ) {
106
111
// default level
You can’t perform that action at this time.
0 commit comments