From: Kern Sibbald Date: Thu, 6 Dec 2012 09:19:38 +0000 (+0100) Subject: Enhance output of Using Device to include for read/write X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0b20c4f731f6a0e26613898d2c3ac8257571b6eb;p=bacula%2Fbacula Enhance output of Using Device to include for read/write --- diff --git a/bacula/src/dird/msgchan.c b/bacula/src/dird/msgchan.c index 1e7cfc7038..686f0c7af6 100644 --- a/bacula/src/dird/msgchan.c +++ b/bacula/src/dird/msgchan.c @@ -269,6 +269,9 @@ bool start_storage_daemon_job(JCR *jcr, alist *rstore, alist *wstore, bool send_ } else { ok = false; } + if (ok) { + Jmsg(jcr, M_INFO, 0, _("Using Device \"%s\" to read.\n"), device_name.c_str()); + } } /* Do write side of storage daemon */ @@ -304,6 +307,9 @@ bool start_storage_daemon_job(JCR *jcr, alist *rstore, alist *wstore, bool send_ } else { ok = false; } + if (ok) { + Jmsg(jcr, M_INFO, 0, _("Using Device \"%s\" to write.\n"), device_name.c_str()); + } } if (!ok) { POOL_MEM err_msg; @@ -317,8 +323,6 @@ bool start_storage_daemon_job(JCR *jcr, alist *rstore, alist *wstore, bool send_ " Storage daemon didn't accept Device \"%s\" command.\n"), device_name.c_str()); } - } else { - Jmsg(jcr, M_INFO, 0, _("Using Device \"%s\"\n"), device_name.c_str()); } return ok; }