]> git.sur5r.net Git - bacula/bacula/commitdiff
Display more info when maximum spool size is reached
authorKern Sibbald <kern@sibbald.com>
Tue, 25 Dec 2012 13:08:04 +0000 (14:08 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:51:05 +0000 (14:51 +0200)
bacula/src/stored/spool.c

index 47654eea350adc349246d62d2c7785b513a205b0..395bd48c382b91d4a752d80d4f9dd8bc372e4a62 100644 (file)
@@ -475,16 +475,14 @@ bool write_block_to_spool_file(DCR *dcr)
    }
    V(mutex);
    if (despool) {
-#ifdef xDEBUG
       char ec1[30], ec2[30], ec3[30], ec4[30];
-      Dmsg4(100, "Despool in write_block_to_spool_file max_size=%s size=%s "
-            "max_job_size=%s job_size=%s\n",
-            edit_uint64_with_commas(dcr->max_job_spool_size, ec1),
-            edit_uint64_with_commas(dcr->job_spool_size, ec2),
-            edit_uint64_with_commas(dcr->dev->max_spool_size, ec3),
-            edit_uint64_with_commas(dcr->dev->spool_size, ec4));
-#endif
-      Jmsg(dcr->jcr, M_INFO, 0, _("User specified spool size reached.\n"));
+      Jmsg(dcr->jcr, M_INFO, 0, _("User specified spool size reached: "
+         "JobSpoolSize=%s MaxJobSpool=%s DevSpoolSize=%s MaxDevSpool=%s\n"),
+         edit_uint64_with_commas(dcr->job_spool_size, ec1),
+         edit_uint64_with_commas(dcr->max_job_spool_size, ec2),
+         edit_uint64_with_commas(dcr->dev->spool_size, ec3),
+         edit_uint64_with_commas(dcr->dev->max_spool_size, ec4));
+
       if (!despool_data(dcr, false)) {
          Pmsg0(000, _("Bad return from despool in write_block.\n"));
          return false;