Bug 4143 - inappropriate log levels in nmbd
inappropriate log levels in nmbd
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: nmbd
3.0.9
x86 Linux
: P3 minor
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-10-03 06:55 UTC by Mikel Ward
Modified: 2008-01-30 06:26 UTC (History)
0 users

See Also:


Attachments
modify log levels in nmbd source code (6.54 KB, patch)
2006-10-03 06:56 UTC, Mikel Ward
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikel Ward 2006-10-03 06:55:33 UTC
On my Debian system running Samba 3.0.23, nmbd sends a lot of log
messages to the system log at "error" priority when it starts up.
There are a total of 44 lines, including messages like:

Oct  3 20:15:52 eagle nmbd[8656]:   *****
Oct  3 20:15:52 eagle nmbd[8656]:
Oct  3 20:15:52 eagle nmbd[8656]:   Samba server EAGLE is now a domain master browser for workgroup ENDBRACKET on subnet 192.168.1.254
Oct  3 20:15:52 eagle nmbd[8656]:
Oct  3 20:15:52 eagle nmbd[8656]:   *****

I noticed this when trying to set up automated notification of
important error messages by sending log messages at error priority or
higher to my mobile phone by SMS.  As you can imagine, I got a lot of
SMSs.

Samba's syslog support says that the Samba debug levels should be
mapped to syslog priorities as follows:
  0  = error
  1  = warning
  2  = notice
  3  = info
  4+ = debug

This seems to be more or less followed by most of Samba, but not very
well by nmbd.
Comment 1 Mikel Ward 2006-10-03 06:56:17 UTC
Created attachment 2170 [details]
modify log levels in nmbd source code

The attached patch aims to fix the most obvious and frequently
occurring messages.  After it is applied, only error messages will be
logged at LOG_ERR, while other messages will be logged at more
appropriate (lower) priorities so they can be handled properly in
/etc/syslog.conf.
Comment 2 Mikel Ward 2008-01-30 06:26:49 UTC
Is there any update on this?  Do you need me to do something more?