s3-printing: Increase debug level for info that the db is empty.
authorAndreas Schneider <asn@samba.org>
Thu, 20 Sep 2012 08:20:31 +0000 (10:20 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 12 Oct 2012 07:25:38 +0000 (09:25 +0200)
(cherry picked from commit c80d70da1364349a5329d17a68033163c5025264)

Signed-off-by: Andreas Schneider <asn@samba.org>
See bug #9112 - smbd.log is flooded by 'printer_list_get_printer: Failed to
fetch record!' for details.

source3/printing/printer_list.c

index 6ddd774d4f3c20eae53b54f59542c0ee17a686b2..8f196a51599825a00bf87d36e02064cd2e949695 100644 (file)
@@ -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;
        }