Skip to content

Commit

Permalink
chore: update error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jvandenaardweg committed Dec 19, 2024
1 parent 94c0cbf commit bca37bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/energy-socket-accessory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -538,9 +538,9 @@ export class EnergySocketAccessory {
}
} catch (error) {
if (error instanceof Undici.errors.HeadersTimeoutError) {
this.log.debug('Error during state polling. Device is probably offline.', error);
this.log.error('Error during state polling. Device is probably offline.', error);
} else {
this.log.debug('Error polling state:', error);
this.log.error('Error polling state:', error);
}
}

Expand Down

0 comments on commit bca37bf

Please sign in to comment.