From 2b4bb1bc459d043ac39e7df50b6553a654f58580 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 20 Sep 2012 10:20:31 +0200 Subject: [PATCH] s3-printing: Increase debug level for info that the db is empty. (cherry picked from commit c80d70da1364349a5329d17a68033163c5025264) Signed-off-by: Andreas Schneider See bug #9112 - smbd.log is flooded by 'printer_list_get_printer: Failed to fetch record!' for details. (cherry picked from commit 5166e0bde86619f477645cca9642be85d567ffe8) --- source3/printing/printer_list.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/printing/printer_list.c b/source3/printing/printer_list.c index 6ddd774d4f3..8f196a51599 100644 --- a/source3/printing/printer_list.c +++ b/source3/printing/printer_list.c @@ -91,7 +91,8 @@ NTSTATUS printer_list_get_printer(TALLOC_CTX *mem_ctx, data = dbwrap_fetch_bystring_upper(db, key, key); if (data.dptr == NULL) { - DEBUG(1, ("Failed to fetch record!\n")); + DEBUG(6, ("Failed to fetch record! " + "The printer database is empty?\n")); status = NT_STATUS_NOT_FOUND; goto done; } -- 2.11.4.GIT