TJForc / risco-lan-bridge

risco-lan-bridge is a "bridge" between a node.js application and a Risco Panel
Other
21 stars 12 forks source link

can you remove the newline break in 'SendCommand Timeout!!!' error logging #4

Closed andyblac closed 2 years ago

andyblac commented 2 years ago

as title, can you remove the new line in the below error logging, it would make cleaner logs in logfile,

[23/10/2021, 15:10:56] [RiscoLocalAlarm] SendCommand Timeout!!! 
 Command Id : '02' 
[23/10/2021, 15:11:01] [RiscoLocalAlarm] SendCommand Timeout!!! 
 Command Id : '02' 
[23/10/2021, 15:18:26] [webostv] [Lounge] Disconnected from TV
[23/10/2021, 15:18:26] [webostv] [Lounge] TV turned off!
[23/10/2021, 15:18:31] [webostv] [Lounge] Starting TV alive polling
[23/10/2021, 15:40:51] [RiscoLocalAlarm] SendCommand Timeout!!! 
 Command Id : '17' 
[23/10/2021, 15:40:56] [RiscoLocalAlarm] SendCommand Timeout!!! 
 Command Id : '17' 

Thanks.

https://github.com/TJForc/risco-lan-bridge/blob/0aa9e04701db3964473dbb9f7422e6ea0ca85d99/lib/RiscoChannels.js#L222