WHATSNEW.txt ought to say something about the changing logging controls...

Richard Bollinger rabollinger at home.com
Wed Feb 14 21:13:37 GMT 2001


Here's the patch to make the nmbd and smbd startup messages always appear in log.nmbd and log.smbd.

Because of timing, they'd never be printed otherwise, even with a debug log level = 999 in smb.conf.

--- ./nmbd/nmbd.c.0 Wed Feb 14 08:32:49 2001
+++ ./nmbd/nmbd.c Wed Feb 14 16:09:17 2001
@@ -768,8 +768,8 @@

   reopen_logs();

-  DEBUG( 1, ( "Netbios nameserver version %s started.\n", VERSION ) );
-  DEBUGADD( 1, ( "Copyright Andrew Tridgell 1994-1998\n" ) );
+  DEBUG( 0, ( "Netbios nameserver version %s started.\n", VERSION ) );
+  DEBUGADD( 0, ( "Copyright Andrew Tridgell 1994-1998\n" ) );

   if ( !reload_nmbd_services(False) )
     return(-1);
--- ./smbd/server.c.0 Wed Feb 14 08:32:49 2001
+++ ./smbd/server.c Wed Feb 14 16:09:34 2001
@@ -683,8 +683,8 @@

  reopen_logs();

- DEBUG(1,( "smbd version %s started.\n", VERSION));
- DEBUGADD(1,( "Copyright Andrew Tridgell 1992-1998\n"));
+ DEBUG(0,( "smbd version %s started.\n", VERSION));
+ DEBUGADD(0,( "Copyright Andrew Tridgell 1992-1998\n"));

  DEBUG(2,("uid=%d gid=%d euid=%d egid=%d\n",
    (int)getuid(),(int)getgid(),(int)geteuid(),(int)getegid()));

----- Original Message -----
From: "Richard Bollinger" <rabollinger at home.com>
To: "Samba Technical" <samba-technical at samba.org>
Sent: Wednesday, February 14, 2001 12:36 PM
Subject: WHATSNEW.txt ought to say something about the changing logging controls...


> In the past few days, there have been some changes in the logging setup in the 2.2 CVS version of
> samba.  Among other things, the default log level went from 2 to 0.  I was surprised to find
> log.smbd file created until I specified a level greater than 0.  Kind of spooky at first.
>
> Maybe that startup message in smbd/server.c should be at level 0, same as the one in
> nmbd/nmbd.c.





More information about the samba-technical mailing list