From cb1c58846bb350ccbbf27267262d35fa9fe2b4af Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 17 Feb 2015 00:18:28 +1100 Subject: [PATCH] Demote update notices for subproxies --- src/stratifier.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index 52abe3f4..9697e190 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1161,7 +1161,10 @@ static void update_subscribe(ckpool_t *ckp, const char *cmd) json_get_int(&id, val, "proxy"); json_get_int(&subid, val, "subproxy"); - LOGNOTICE("Got updated subscribe for proxy %d:%d", id, subid); + if (!subid) + LOGNOTICE("Got updated subscribe for proxy %d", id); + else + LOGINFO("Got updated subscribe for proxy %d:%d", id, subid); proxy = subproxy_by_id(sdata, id, subid); proxy->notify_id = -1; /* Reset this */ @@ -1233,7 +1236,10 @@ static void update_notify(ckpool_t *ckp, const char *cmd) LOGNOTICE("No valid proxy %d:%d subscription to update notify yet", id, subid); goto out; } - LOGNOTICE("Got updated notify for proxy %d:%d", id, subid); + if (!subid) + LOGNOTICE("Got updated notify for proxy %d", id); + else + LOGINFO("Got updated notify for proxy %d:%d", id, subid); wb = ckzalloc(sizeof(workbase_t)); wb->ckp = ckp; @@ -1329,7 +1335,10 @@ static void update_diff(ckpool_t *ckp, const char *cmd) json_dblcpy(&diff, val, "diff"); json_decref(val); - LOGNOTICE("Got updated diff for proxy %d:%d", id, subid); + if (!subid) + LOGNOTICE("Got updated diff for proxy %d", id); + else + LOGINFO("Got updated diff for proxy %d:%d", id, subid); proxy = subproxy_by_id(sdata, id, subid); /* We only really care about integer diffs so clamp the lower limit to