summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-28 17:09:47 +0100
committerGünther Deschner <gd@samba.org>2008-02-28 17:25:33 +0100
commit77a25318105d90ae34a05c8a1e71df84343bb28e (patch)
tree4bbbd1c210ed5a5f3e0dce7bff0385ed93f4ddf5 /source3/lib
parent15f6e27bd5a9065c8b781fa21f5989ce2c355776 (diff)
downloadsamba-77a25318105d90ae34a05c8a1e71df84343bb28e.tar.gz
samba-77a25318105d90ae34a05c8a1e71df84343bb28e.tar.bz2
samba-77a25318105d90ae34a05c8a1e71df84343bb28e.zip
Only set DEBUGLEVEL to 0 in libnetapi when not set already.
Guenther (This used to be commit 3ace1601ac5b5d87d6bfd8aa0afe0c75858b6990)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/netapi/netapi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/lib/netapi/netapi.c b/source3/lib/netapi/netapi.c
index 47b3ba93cf..fb091f6e0b 100644
--- a/source3/lib/netapi/netapi.c
+++ b/source3/lib/netapi/netapi.c
@@ -50,7 +50,9 @@ NET_API_STATUS libnetapi_init(struct libnetapi_ctx **context)
return W_ERROR_V(WERR_NOMEM);
}
- DEBUGLEVEL = 0;
+ if (!DEBUGLEVEL) {
+ DEBUGLEVEL = 0;
+ }
setup_logging("libnetapi", true);
dbf = x_stderr;