[PATCH] printing: increse log level for unreachable cups servers

Björn Jacke bj at sernet.de
Wed Mar 4 02:19:32 MST 2015


this annoying messages hitting the logs very often on non-cups servers by
default in log level 0 otherwise.
---
 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 0ec71ab..e1567cf 100644
--- a/source3/printing/print_cups.c
+++ b/source3/printing/print_cups.c
@@ -147,7 +147,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)));
 	}
 
@@ -525,7 +525,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.3.0



More information about the samba-technical mailing list