From be152549fa66a2d5b8ad1b9c9d9e3b63a7b14cd7 Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Sun, 20 Feb 2005 04:18:30 +0000 Subject: [PATCH] make some logs from log level to debug level --- pool_process_query.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pool_process_query.c b/pool_process_query.c index a1b10c1..4478ea9 100644 --- a/pool_process_query.c +++ b/pool_process_query.c @@ -653,7 +653,7 @@ static POOL_STATUS CompleteCommandResponse(POOL_CONNECTION *frontend, if (len != len1) { - pool_log("Complete Command Response: message length does not match between master(%d \"%s\",) and secondary(%d \"%s\",)", + pool_debug("Complete Command Response: message length does not match between master(%d \"%s\",) and secondary(%d \"%s\",)", len, string, len1, string1); } } @@ -728,7 +728,7 @@ static int RowDescription(POOL_CONNECTION *frontend, /* we do not regard oid mismatch as fatal */ if (oid != oid1) { - pool_log("RowDescription: field oid deos not match between backends master(%d) and secondary(%d)", + pool_debug("RowDescription: field oid deos not match between backends master(%d) and secondary(%d)", ntohl(oid), ntohl(oid1)); } } @@ -741,7 +741,7 @@ static int RowDescription(POOL_CONNECTION *frontend, pool_read(SECONDARY(backend), &size1, sizeof(short)); if (size1 != size1) { - pool_log("RowDescription: field size deos not match between backends master(%d) and secondary(%d)", + pool_error("RowDescription: field size deos not match between backends master(%d) and secondary(%d)", ntohs(size), ntohs(size1)); return POOL_FATAL; } @@ -756,7 +756,7 @@ static int RowDescription(POOL_CONNECTION *frontend, pool_read(SECONDARY(backend), &mod1, sizeof(int)); if (mod != mod1) { - pool_log("RowDescription: modifier deos not match between backends master(%d) and secondary(%d)", + pool_debug("RowDescription: modifier deos not match between backends master(%d) and secondary(%d)", ntohl(mod), ntohl(mod1)); } } @@ -802,7 +802,7 @@ static POOL_STATUS AsciiRow(POOL_CONNECTION *frontend, this as a fatal error. However in the real world we'd better to adapt this situation. Just throw a log... */ - pool_log("AsciiRow: NULLMAP differ between master and secondary"); + pool_debug("AsciiRow: NULLMAP differ between master and secondary"); } } @@ -833,7 +833,7 @@ static POOL_STATUS AsciiRow(POOL_CONNECTION *frontend, return POOL_END; if (size != size1) - pool_log("AsciiRow: %d th field size does not match between master(%d) and secondary(%d)", + pool_debug("AsciiRow: %d th field size does not match between master(%d) and secondary(%d)", i, ntohl(size), ntohl(size1)); size1 = ntohl(size1) - 4; } @@ -910,7 +910,7 @@ static POOL_STATUS BinaryRow(POOL_CONNECTION *frontend, this as a fatal error. However in the real world we'd better to adapt this situation. Just throw a log... */ - pool_log("BinaryRow: NULLMAP differ between master and secondary"); + pool_debug("BinaryRow: NULLMAP differ between master and secondary"); } } @@ -941,7 +941,7 @@ static POOL_STATUS BinaryRow(POOL_CONNECTION *frontend, return POOL_END; if (size != size1) - pool_log("BinaryRow: %d th field size does not match between master(%d) and secondary(%d)", + pool_debug("BinaryRow: %d th field size does not match between master(%d) and secondary(%d)", i, ntohl(size), ntohl(size1)); size1 = ntohl(size1) - 4; } @@ -1391,7 +1391,7 @@ static POOL_STATUS ProcessFrontendResponse(POOL_CONNECTION *frontend, if (pool_read(frontend, &fkind, 1) < 0) { - pool_error("ProcessFrontendResponse: failed to read kind"); + pool_error("ProcessFrontendResponse: failed to read kind from frontend. fronend abnormally exited"); return POOL_END; } @@ -1923,7 +1923,7 @@ POOL_STATUS SimpleForwardToFrontend(char kind, POOL_CONNECTION *frontend, POOL_C if (len != len1) { - pool_log("SimpleForwardToFrontend: length does not match between backends master(%d) secondary(%d) kind:(%c)", + pool_debug("SimpleForwardToFrontend: length does not match between backends master(%d) secondary(%d) kind:(%c)", ntohl(len), ntohl(len1), kind); } } -- 2.39.5