Changeset 436


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

client 1.5: samba logging part 2

Location:
branches/client-1.5/src
Files:
2 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
  • branches/client-1.5/src/smbwrp.c

    r434 r436  
    4242
    4343                // init samba for debug messages
    44                 debug_init();
    4544                setup_logging(slogfile, false);
     45                lp_set_logfile(slogfile);
    4646                debug_parse_levels("9");
    4747}
     
    171171        }
    172172
     173        if (writeLog())
     174        {
     175                smbwrp_Logging();
     176        }
    173177/*
    174178        if ((p=smbw_getshared("RESOLVE_ORDER"))) {
Note: See TracChangeset for help on using the changeset viewer.