From fb86aa86ae040dfa8009d4c13f7712fede8bd063 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Jacke?= Date: Wed, 4 Mar 2015 10:15:10 +0100 Subject: [PATCH] printing: increse log level for unreachable cups servers MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit this annoying messages hitting the logs very often on non-cups servers by default in log level 0 otherwise. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11133 Signed-off-by: Bjoern Jacke Reviewed-by: David Disseldorp Autobuild-User(master): Björn Jacke Autobuild-Date(master): Thu Mar 5 14:38:42 CET 2015 on sn-devel-104 --- source3/printing/print_cups.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c index 561e07d2ac3..fd78a7ff1c4 100644 --- a/source3/printing/print_cups.c +++ b/source3/printing/print_cups.c @@ -148,7 +148,7 @@ static http_t *cups_connect(TALLOC_CTX *frame) alarm(0); if (http == NULL) { - DEBUG(0,("Unable to connect to CUPS server %s:%d - %s\n", + DEBUG(3,("Unable to connect to CUPS server %s:%d - %s\n", server, port, strerror(errno))); } @@ -526,7 +526,7 @@ static void cups_async_callback(struct tevent_context *event_ctx, } if (!NT_STATUS_IS_OK(pcap_data.status)) { - DEBUG(0,("failed to retrieve printer list: %s\n", + DEBUG(3,("failed to retrieve printer list: %s\n", nt_errstr(pcap_data.status))); goto err_out; } -- 2.11.4.GIT