From 8788aea643453a8d18563629220e7edd53babf41 Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Mon, 8 Jan 2001 02:47:30 +0000 Subject: Add support for logging to wherever smb.conf specifies. (This used to be commit cc5a2db8a0c195b328b93fff566bc1120aeef54a) --- source3/libsmb/libsmbclient.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'source3/libsmb') diff --git a/source3/libsmb/libsmbclient.c b/source3/libsmb/libsmbclient.c index 2cbc66986e..3c1c343ec2 100644 --- a/source3/libsmb/libsmbclient.c +++ b/source3/libsmb/libsmbclient.c @@ -428,12 +428,16 @@ int smbc_init(smbc_get_auth_data_fn fn, const char *wgroup, int debug) static pstring workgroup; pstring conf; int p, pid; - char *user = NULL, *host = NULL, *home = NULL; + char *user = NULL, *host = NULL, *home = NULL, *pname="libsmbclient"; smbc_initialized = 1; smbc_auth_fn = fn; smbc_debug = debug; + DEBUGLEVEL = -1; + + setup_logging(pname, False); + /* * We try to construct our netbios name from our hostname etc */ @@ -458,7 +462,7 @@ int smbc_init(smbc_get_auth_data_fn fn, const char *wgroup, int debug) slprintf(conf, sizeof(conf), "%s/.smb/smb.conf", home); - load_interfaces(); /* Load the list of interfaces ... */ + load_interfaces(); /* Load the list of interfaces ... */ in_client = True; /* FIXME, make a param */ @@ -477,6 +481,8 @@ int smbc_init(smbc_get_auth_data_fn fn, const char *wgroup, int debug) } + reopen_logs(); /* Get logging working ... */ + /* * Now initialize the file descriptor array and figure out what the * max open files is, so we can return FD's that are above the max -- cgit