From: Eric Bollengier Date: Mon, 12 Nov 2012 13:59:00 +0000 (+0100) Subject: Tweak debug message in ua_label X-Git-Tag: Release-7.0.0~74 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ea611743fd342909810184cbf15b154a376187fb;p=bacula%2Fbacula Tweak debug message in ua_label --- diff --git a/bacula/src/dird/ua_label.c b/bacula/src/dird/ua_label.c index 7dd1ecf2be..aa008f031d 100644 --- a/bacula/src/dird/ua_label.c +++ b/bacula/src/dird/ua_label.c @@ -147,10 +147,12 @@ static bool get_user_slot_list(UAContext *ua, char *slot_list, int num_slots) slot_list[i] = 1; } } - Dmsg0(100, "Slots turned on:\n"); - for (i=1; i <= num_slots; i++) { - if (slot_list[i]) { - Dmsg1(100, "%d\n", i); + if (debug_level >= 100) { + Dmsg0(100, "Slots turned on:\n"); + for (i=1; i <= num_slots; i++) { + if (slot_list[i]) { + Dmsg1(100, "%d\n", i); + } } } return true;