Can specific warnings be suppressed?

Forum for questions and support relating to the 1.24.x releases only.
Locked
schasj
Posts: 2
Joined: Tue Jul 26, 2011 2:32 am

Can specific warnings be suppressed?

Post by schasj »

I've recently setup ZM and have it configured to use 2 Foscam cameras, a FI8905W which works just fine and a FI8918W that works in all respects except that it generates several of these log entries every second:

Code: Select all

Jul 23 19:11:43 newguy zmc_m2[2942]: WAR [Corrupt JPEG data: 1 extraneous bytes before marker 0xd9]
Obviously this leads to very large logs. I've sent a request to Foscam to check their JPEG generation code on the FI8918W but I haven't heard back yet. BTW, a cursory hex inspection of the JPEG appears to confirm the error.

In the mean time is there any way I can suppress/disable/shunt just these messages? I searched the source files but, strangely, was not able to locate where they are coming from or I'd comment out that line/function.

Thanks
schasj
Posts: 2
Joined: Tue Jul 26, 2011 2:32 am

Re: Can specific warnings be suppressed?

Post by schasj »

Well, I found out that the reason I couldn't locate the message in the ZM source is that its being generated by libjpeg. So, to get rid of it one needs to build libjpeg from source after editing to comment out the message.

Foscam has replied that its not their problem. I still think it is.
Locked