debug syslog spamming

Forum for questions and support relating to the 1.24.x releases only.
Locked
n1md4
Posts: 4
Joined: Fri Jan 29, 2010 1:46 am

debug syslog spamming

Post by n1md4 »

Syslog is getting spammed with this:-

Jan 29 13:30:26 ***** zms[24068]: INF [Debug Level = 0, Debug Log = <none>]

How can I switch this part of logging off? I noticed the Options -> Debug tab on the webpage, but none of the options are ticked.

Thanks,
n1md4
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

You can either recompile zms with the default debug level to be -1 or less (look for DbgInit) or you can redirect this kind of message as detailed in the Logging section of the main documentation on the Wiki.
Phil
haus
Posts: 213
Joined: Thu Oct 11, 2007 5:10 am

Ubuntu logging

Post by haus »

I'm placing this here so that others may find it with a search. I read that as of Ubuntu 9.10, sysklogd has been replaced with rsyslog. The configuration file for the local1 facility edits changed from /etc/syslog.conf to /etc/rsyslog.d/50-default.conf. Make the edits outlined in the Wiki as needed (to disable all logging, or info only leaving warnings, etc.)

Then issue "service rsyslog restart"

and the messages to /var/log/message and /var/log/syslog will stop.
attilahooper
Posts: 20
Joined: Mon Feb 15, 2010 6:38 pm

Post by attilahooper »

thx Haus, yer exactly right for Ubuntu 9.10

In 50-default.conf add the line

local1.* /var/log/zm/zm.log

and edit these lines with the local1.!* inclusion

*.*;auth,authpriv.none;local1.!* -/var/log/syslog

*.=info;local1.!*;*.=notice;*.=warn;\
auth,authpriv.none;\
cron,daemon.none;\
mail,news.none -/var/log/messages
Locked