Error logging missing key data
Posted: Sat Aug 13, 2011 7:21 pm
I'm working on testing out the new 1.25.0, but I saw this problem in 1.24.x releases as well.
Some of the error logs don't list any indication as to which monitor/camera is having a problem. It makes troubleshooting very difficult. Here's a couple examples:
Aug 13 13:54:11 titan zmc[4490]: ERR [Unable to read content]
Aug 13 13:54:11 titan zmc[4490]: ERR [Unable to get response]
Aug 13 13:54:11 titan zma[4509]: ERR [Got unexpected memory map file size 6145280, expected 4609280]
Aug 13 13:54:01 titan zmc[3308]: INF [Got signal 15 (Terminated), exiting]
Aug 13 13:54:01 titan zmc[3308]: ERR [Select error: Interrupted system call]
I was looking through the code and see that the errors logged don't have any indications in them to list a name:
Error( "Connection dropped by remote end" );
Now, couldn't it just be re-worded to say something like:
Error( "%s: Connection dropped by remote end", name );
However, I'm not savvy enough to know how to "declare" the name in that scope.
Any suggestions on how to add this functionality? Think it could be something fixed/changed in the 1.25.0 release? It's really helpful to know which monitor/camera is having the problem!
Thanks!
Some of the error logs don't list any indication as to which monitor/camera is having a problem. It makes troubleshooting very difficult. Here's a couple examples:
Aug 13 13:54:11 titan zmc[4490]: ERR [Unable to read content]
Aug 13 13:54:11 titan zmc[4490]: ERR [Unable to get response]
Aug 13 13:54:11 titan zma[4509]: ERR [Got unexpected memory map file size 6145280, expected 4609280]
Aug 13 13:54:01 titan zmc[3308]: INF [Got signal 15 (Terminated), exiting]
Aug 13 13:54:01 titan zmc[3308]: ERR [Select error: Interrupted system call]
I was looking through the code and see that the errors logged don't have any indications in them to list a name:
Error( "Connection dropped by remote end" );
Now, couldn't it just be re-worded to say something like:
Error( "%s: Connection dropped by remote end", name );
However, I'm not savvy enough to know how to "declare" the name in that scope.
Any suggestions on how to add this functionality? Think it could be something fixed/changed in the 1.25.0 release? It's really helpful to know which monitor/camera is having the problem!
Thanks!