From eee0b0852339964bd533d586fd3ec3f4cc4d3a50 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 3 Mar 2004 09:12:30 +0000 Subject: [PATCH] Set trace in SD git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1106 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/stored/dircmd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bacula/src/stored/dircmd.c b/bacula/src/stored/dircmd.c index 5cef5693e4..46116ca56d 100644 --- a/bacula/src/stored/dircmd.c +++ b/bacula/src/stored/dircmd.c @@ -197,14 +197,15 @@ void *connection_request(void *arg) static int setdebug_cmd(JCR *jcr) { BSOCK *dir = jcr->dir_bsock; - int level; + int level, trace_flag; Dmsg1(10, "setdebug_cmd: %s", dir->msg); - if (sscanf(dir->msg, "setdebug=%d", &level) != 1 || level < 0) { + if (sscanf(dir->msg, "setdebug=%d", &level, &trace_flag) != 2 || level < 0) { bnet_fsend(dir, "3991 Bad setdebug command: %s\n", dir->msg); return 0; } debug_level = level; + set_trace(trace_flag); return bnet_fsend(dir, OKsetdebug, level); } -- 2.39.5