spine icon indicating copy to clipboard operation
spine copied to clipboard

Debug message format unification

Open xmacan opened this issue 3 years ago • 4 comments

Few Lines have DEBUG: Device[xx] and the rest Device[44] DEBUG

2022-05-04 10:20:03 - SPINE: Poller[1] PID[45643] PT[34376899840] DEBUG: Device[44] HT[1] In Poller, About to Start Polling 2022-05-04 10:20:03 - SPINE: Poller[1] PID[45643] PT[34376899840] Device[44] DEBUG: Entering ICMP Ping 2022-05-04 10:20:03 - SPINE: Poller[1] PID[45643] PT[34376899840] Device[44] DEBUG: Attempting to ping ......, seq 0 (Retry 0 of 3) 2022-05-04 10:20:03 - SPINE: Poller[1] PID[45643] PT[34376899840] Device[44] DEBUG: ICMP Device Alive, Try Count:1, Time:5.0600 ms 2022-05-04 10:20:03 - SPINE: Poller[1] PID[45643] PT[34376899840] Device[44] DEBUG: Entering SNMP Ping 2022-05-04 10:20:03 - SPINE: Poller[1] PID[45643] PT[34376899840] DEBUG: Device[44] HT[1] RECACHE: Processing 3 items in the auto reindex cache for '......' 2022-05-04 10:20:04 - SPINE: Poller[1] PID[45643] PT[34376899840] DEBUG: Device[44] HT[1] DEBUG: HOST COMPLETE: About to Exit Device Polling Thread Function

Spine 1.2.20

xmacan avatar May 04 '22 08:05 xmacan

Additionally, several messages that are device related (for example the debug lines for polled values) don't contain a device ID, but only the IP/name of the device.

Would be helpful to have a kind of unified message-header for each type of log message, so that all necessary clues are inside each message.

bernisys avatar Aug 17 '22 13:08 bernisys

I would agree there are some inconsistency on the output there, likely due to bad fingers and different developers 💯

netniV avatar Aug 17 '22 14:08 netniV

Don't think this made the 1.2.22 milestone though

netniV avatar Aug 17 '22 14:08 netniV

Going to move this to 1.2.24

TheWitness avatar Nov 20 '22 19:11 TheWitness