Skip to content

Commit

Permalink
optimized logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Black-Thunder committed Jun 20, 2020
1 parent 028135e commit 3361615
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/melcloudDevice.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ class MelcloudDevice {

if(statusCode != HttpStatus.OK) {
gthis.airInfo = null;
gthat.log.error("Invalid HTTP status code (see line above). Getting device data failed!");
gthat.log.error("Invalid HTTP status code (" + statusCode + " - " + HttpStatus.getStatusText(statusCode) + "). Getting device data failed!");
return;
}

Expand Down Expand Up @@ -692,7 +692,7 @@ class MelcloudDevice {

if(statusCode != HttpStatus.OK) {
gthis.airInfo = null;
gthat.log.error("Invalid HTTP status code (see line above). Changing device option failed!");
gthat.log.error("Invalid HTTP status code (" + statusCode + " - " + HttpStatus.getStatusText(statusCode) + "). Changing device option failed!");
return;
}

Expand Down
4 changes: 2 additions & 2 deletions lib/melcloudPlatform.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class MelcloudPlatform {
if(statusCode != HttpStatus.OK) {
gthis.isConnected = false;
gthat.setAdapterConnectionState(false);
gthat.log.error("Invalid HTTP status code (see line above). Login failed!");
gthat.log.error("Invalid HTTP status code (" + statusCode + " - " + HttpStatus.getStatusText(statusCode) + "). Login failed!");
return;
}

Expand Down Expand Up @@ -129,7 +129,7 @@ class MelcloudPlatform {
if(statusCode != HttpStatus.OK) {
gthis.isConnected = false;
gthat.setAdapterConnectionState(false);
gthat.log.error("Invalid HTTP status code (see line above). Getting devices failed!");
gthat.log.error("Invalid HTTP status code (" + statusCode + " - " + HttpStatus.getStatusText(statusCode) + "). Getting devices failed!");
return;
}

Expand Down

0 comments on commit 3361615

Please sign in to comment.