Ignore:
Timestamp:
Apr 14, 2010, 12:24:01 PM (15 years ago)
Author:
Silvan Scherrer
Message:

client 1.5: samba logging part 2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/client-1.5/src/debug.c

    r434 r436  
    3434char debugfile[_MAX_PATH +1] = {0};
    3535char logfilename[] = "ndpsmb.log";
     36BOOL do_logging;
    3637
    3738int debuglvl(int level)
     
    4041}
    4142
     43BOOL writeLog()
     44{
     45        return do_logging;
     46}
     47
    4248void debuglocal(int level, const char * fmt, ...)
    4349{
    4450        FILE *f=NULL;
    4551        struct stat filestat;
     52        do_logging = FALSE;
    4653
    4754        // if the file ndpsmb.dbg is around we write a logfile
     
    7178                }
    7279                // set the samba logging stuff
    73                 smbwrp_Logging();
     80                do_logging = TRUE;
    7481        } /* endif */
    7582
Note: See TracChangeset for help on using the changeset viewer.