From: Kern Sibbald Date: Fri, 9 Apr 2010 09:17:45 +0000 (+0200) Subject: Set level for debug code X-Git-Tag: Release-5.2.1~1501 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9b0d9cdca758f28fde86e414a821d71859b3ac4d;p=bacula%2Fbacula Set level for debug code --- diff --git a/bacula/src/filed/backup.c b/bacula/src/filed/backup.c index 717ff977a6..bcd25c1fc3 100644 --- a/bacula/src/filed/backup.c +++ b/bacula/src/filed/backup.c @@ -336,7 +336,7 @@ int save_file(JCR *jcr, FF_PKT *ff_pkt, bool top_level) Dmsg2(130, "FT_LNK saving: %s -> %s\n", ff_pkt->fname, ff_pkt->link); break; case FT_RESTORE_FIRST: - Dmsg1(00, "FT_RESTORE_FIRST saving: %s\n", ff_pkt->fname); + Dmsg1(100, "FT_RESTORE_FIRST saving: %s\n", ff_pkt->fname); break; case FT_DIRBEGIN: jcr->num_files_examined--; /* correct file count */ @@ -533,7 +533,7 @@ int save_file(JCR *jcr, FF_PKT *ff_pkt, bool top_level) do_read = true; } - Dmsg2(000, "type=%d do_read=%d\n", ff_pkt->type, do_read); + Dmsg2(100, "type=%d do_read=%d\n", ff_pkt->type, do_read); if (do_read) { btimer_t *tid; @@ -1182,7 +1182,7 @@ bool encode_and_send_attributes(JCR *jcr, FF_PKT *ff_pkt, int &data_stream) * object is tacked on to the end in place of the extended attributes, * but we do a memcpy so that the object can be a binary object. */ - Dmsg6(000, "Type=%d DataStream=%d attrStream=%d File=%s\nattribs=%s\nattribsEx=%s", + Dmsg6(100, "Type=%d DataStream=%d attrStream=%d File=%s\nattribs=%s\nattribsEx=%s", ff_pkt->type, data_stream, STREAM_UNIX_ATTRIBUTES_EX, ff_pkt->fname, attribs, ff_pkt->object); sd->msglen = Mmsg(sd->msg, "%ld %d %s%c%s%c%c", diff --git a/bacula/src/filed/restore.c b/bacula/src/filed/restore.c index ff2925aa8a..1893fa551c 100644 --- a/bacula/src/filed/restore.c +++ b/bacula/src/filed/restore.c @@ -327,9 +327,9 @@ void do_restore(JCR *jcr) goto bail_out; } - Dmsg3(000, "File %s\nattrib=%s\nattribsEx=%s\n", attr->fname, + Dmsg3(100, "File %s\nattrib=%s\nattribsEx=%s\n", attr->fname, attr->attr, attr->attrEx); - Dmsg3(000, "=== msglen=%d attrExlen=%d msg=%s\n", sd->msglen, + Dmsg3(100, "=== msglen=%d attrExlen=%d msg=%s\n", sd->msglen, strlen(attr->attrEx), sd->msg); attr->data_stream = decode_stat(attr->attr, &attr->statp, &attr->LinkFI);