summaryrefslogtreecommitdiffstats
path: root/source/torture
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-06-26 17:29:09 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-06-26 17:29:09 +0000
commit13b81d0d92b9e28eaab18f5437060e79f6075f9e (patch)
treeb0fdf6df09cf77cdbb11add0ecce7a6cba8003e2 /source/torture
parent0413385feb71e15c9b2f331417ce24c985f1fe8d (diff)
downloadsamba-13b81d0d92b9e28eaab18f5437060e79f6075f9e.tar.gz
samba-13b81d0d92b9e28eaab18f5437060e79f6075f9e.tar.xz
samba-13b81d0d92b9e28eaab18f5437060e79f6075f9e.zip
Move up intialisation of logging, so we catch errors in handling 'preload modules'
Diffstat (limited to 'source/torture')
-rw-r--r--source/torture/smbiconv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/torture/smbiconv.c b/source/torture/smbiconv.c
index ce21a09025e..3524136fb1e 100644
--- a/source/torture/smbiconv.c
+++ b/source/torture/smbiconv.c
@@ -198,6 +198,10 @@ int main(int argc, char *argv[])
while(poptGetNextOpt(pc) != -1);
+ /* the following functions are part of the Samba debugging
+ facilities. See lib/debug.c */
+ setup_logging("smbiconv", True);
+
if(preload)smb_load_modules(str_list_make(preload, NULL));
if(output) {
@@ -209,10 +213,6 @@ int main(int argc, char *argv[])
}
}
- /* the following functions are part of the Samba debugging
- facilities. See lib/debug.c */
- setup_logging("smbiconv", True);
-
cd = smb_iconv_open(to, from);
if((int)cd == -1) {
DEBUG(0,("unable to find from or to encoding, exiting...\n"));