Skip to content

Commit

Permalink
adjust "checkValidNumber" warn message
Browse files Browse the repository at this point in the history
  • Loading branch information
bolliy committed Sep 27, 2024
1 parent c9583ce commit 6586031
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/drivers/driver_inverter.js
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ class InverterSun2000 extends DriverBase{
if (value >= from && value <= until) {
return value;
}
this.log.warn('_checkValidNumber '+value+' from: '+from+' until: '+until);
this.log.debug('_checkValidNumber '+value+' from: '+from+' until: '+until);
return substWith;
}
return value;
Expand Down
5 changes: 5 additions & 0 deletions lib/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ class Logging {
else this.adapter.log.info(msg);
}

silly(msg) {
if (this._quiet) this.debug('Warn: '+msg);
else this.adapter.log.silly(msg);
}

warn(msg) {
if (this._quiet) this.debug('Warn: '+msg);
else this.adapter.log.warn(msg);
Expand Down

0 comments on commit 6586031

Please sign in to comment.