From: Kern Sibbald Date: Tue, 25 Dec 2012 13:08:04 +0000 (+0100) Subject: Display more info when maximum spool size is reached X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=393d3d66078c683ee7fcecdf66de7ca6deb4e76f;p=bacula%2Fbacula Display more info when maximum spool size is reached --- diff --git a/bacula/src/stored/spool.c b/bacula/src/stored/spool.c index 47654eea35..395bd48c38 100644 --- a/bacula/src/stored/spool.c +++ b/bacula/src/stored/spool.c @@ -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;