From d8d9388b6c7327a0c2cb152c7cd0863d729852df Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 6 Feb 2015 20:55:08 +1100 Subject: [PATCH] Add more information and demote messages for proxy send fails --- src/generator.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/generator.c b/src/generator.c index 73a73194..a265b41e 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1334,11 +1334,13 @@ static void *proxy_send(void *arg) ret = send_json_msg(cs, val); json_decref(val); } else - LOGWARNING("Failed to find matching jobid in proxysend"); + LOGNOTICE("Proxy %d:%s failed to find matching jobid in proxysend", + proxi->id, proxi->si->url); json_decref(msg->json_msg); free(msg); if (!ret && cs->fd > 0) { - LOGWARNING("Failed to send msg in proxy_send, dropping to reconnect"); + LOGWARNING("Proxy %d:%s failed to send msg in proxy_send, dropping to reconnect", + proxi->id, proxi->si->url); Close(cs->fd); } }