From: Kern Sibbald Date: Sat, 19 Jan 2019 15:09:49 +0000 (+0100) Subject: Print Device xxx requested by DIR disabled only if verbose is enabled in SD X-Git-Tag: Release-9.4.2~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d15341cc5cfd0d0ab457289b3256e62147a915a;p=thirdparty%2Fbacula.git Print Device xxx requested by DIR disabled only if verbose is enabled in SD --- diff --git a/bacula/src/stored/reserve.c b/bacula/src/stored/reserve.c index 5e0143a6e..87c6f246a 100644 --- a/bacula/src/stored/reserve.c +++ b/bacula/src/stored/reserve.c @@ -744,9 +744,11 @@ static int reserve_device(RCTX &rctx) } return -1; /* no use waiting */ } else if (!rctx.device->dev->enabled) { - Jmsg(rctx.jcr, M_WARNING, 0, _("\n" - " Device \"%s\" requested by DIR is disabled.\n"), + if (verbose) { + Jmsg(rctx.jcr, M_WARNING, 0, _("\n" + " Device \"%s\" requested by DIR is disabled.\n"), rctx.device_name); + } return -1; /* no use waiting */ }