]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Print Device xxx requested by DIR disabled only if verbose is enabled in SD
authorKern Sibbald <kern@sibbald.com>
Sat, 19 Jan 2019 15:09:49 +0000 (16:09 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 19 Jan 2019 15:09:49 +0000 (16:09 +0100)
bacula/src/stored/reserve.c

index 5e0143a6e53703e0d24df9acb14794a92e6d20bc..87c6f246a731445593fd51e66d2d474bc76808f9 100644 (file)
@@ -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 */
    }