diff options
author | Simo Sorce <idra@samba.org> | 2002-05-18 15:09:21 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2002-05-18 15:09:21 +0000 |
commit | be5c3b3f5781ddc002ffcc98df04ab024dcef4ca (patch) | |
tree | c949c7f3d39955e17f53a4ec6bbb279fcf03fd09 /source/param | |
parent | 00ef4aad88f4ba9f2e242578c37933eac001c351 (diff) | |
download | samba-be5c3b3f5781ddc002ffcc98df04ab024dcef4ca.tar.gz samba-be5c3b3f5781ddc002ffcc98df04ab024dcef4ca.tar.xz samba-be5c3b3f5781ddc002ffcc98df04ab024dcef4ca.zip |
so here it is the code to introduce seriously debugggging classes.
this is a first step only passdb stuff has beein "classized".
- so what can you do?
set debug level to: 1 poasdb:10
that will make all the code run at debug level 1 except the code in
passdb/* files that will run at level 10
TODO: fix the man page
- also smbcontrol has this nice feature so smbcontrol smbd debug 3 passdb:5
will set every smbd to have a default log level of 3 while passdb stuff
will be at level 5
and so no..
minor cosmetic fix to pdbedit is there too
Diffstat (limited to 'source/param')
-rw-r--r-- | source/param/loadparm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c index 79eef6ed5ed..ff32bdca648 100644 --- a/source/param/loadparm.c +++ b/source/param/loadparm.c @@ -55,7 +55,6 @@ BOOL in_client = False; /* Not in the client by default */ BOOL bLoaded = False; extern userdom_struct current_user_info; -extern int DEBUGLEVEL_CLASS[DBGC_LAST]; extern pstring user_socket_options; extern pstring global_myname; pstring global_scope = ""; @@ -757,8 +756,8 @@ static struct parm_struct parm_table[] = { {"Logging Options", P_SEP, P_SEPARATOR}, {"admin log", P_BOOL, P_GLOBAL, &Globals.bAdminLog, NULL, NULL, 0}, - {"log level", P_INTEGER, P_GLOBAL, &DEBUGLEVEL_CLASS[DBGC_ALL], handle_debug_list, NULL, 0}, - {"debuglevel", P_INTEGER, P_GLOBAL, &DEBUGLEVEL_CLASS[DBGC_ALL], handle_debug_list, NULL, 0}, + {"log level", P_STRING, P_GLOBAL, NULL, handle_debug_list, NULL, 0}, + {"debuglevel", P_STRING, P_GLOBAL, NULL, handle_debug_list, NULL, 0}, {"syslog", P_INTEGER, P_GLOBAL, &Globals.syslog, NULL, NULL, 0}, {"syslog only", P_BOOL, P_GLOBAL, &Globals.bSyslogOnly, NULL, NULL, 0}, {"log file", P_STRING, P_GLOBAL, &Globals.szLogFile, NULL, NULL, 0}, |