From: willy tarreau Date: Sun, 19 Mar 2006 18:38:19 +0000 (+0100) Subject: Fixed some messages to ease parsing of alerts. X-Git-Tag: v1.2.10~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd6dfe7c7640e496fafb76aa35468cf8081ea32f;p=thirdparty%2Fhaproxy.git Fixed some messages to ease parsing of alerts. --- diff --git a/haproxy.c b/haproxy.c index 9acd7eeef9..6a63bf3b51 100644 --- a/haproxy.c +++ b/haproxy.c @@ -5184,7 +5184,7 @@ int process_chk(struct task *t) { s->health++; /* was bad, stays for a while */ if (s->health >= s->rise) { if (s->health == s->rise) { - Warning("server %s/%s UP.\n", s->proxy->id, s->id); + Warning("Server %s/%s UP.\n", s->proxy->id, s->id); send_log(s->proxy, LOG_NOTICE, "Server %s/%s is UP.\n", s->proxy->id, s->id); } @@ -5980,19 +5980,19 @@ void sig_dump_state(int sig) { send_log(p, LOG_NOTICE, "SIGUP received, dumping servers states.\n"); while (s) { if (s->state & SRV_RUNNING) { - Warning("SIGHUP: server %s/%s is UP.\n", p->id, s->id); - send_log(p, LOG_NOTICE, "SIGUP: server %s/%s is UP.\n", p->id, s->id); + Warning("SIGHUP: Server %s/%s is UP.\n", p->id, s->id); + send_log(p, LOG_NOTICE, "SIGUP: Server %s/%s is UP.\n", p->id, s->id); } else { - Warning("SIGHUP: server %s/%s is DOWN.\n", p->id, s->id); - send_log(p, LOG_NOTICE, "SIGHUP: server %s/%s is DOWN.\n", p->id, s->id); + Warning("SIGHUP: Server %s/%s is DOWN.\n", p->id, s->id); + send_log(p, LOG_NOTICE, "SIGHUP: Server %s/%s is DOWN.\n", p->id, s->id); } s = s->next; } if (find_server(p) == NULL) { - Warning("SIGHUP: proxy %s has no server available !\n", p); - send_log(p, LOG_NOTICE, "SIGHUP: proxy %s has no server available !\n", p); + Warning("SIGHUP: Proxy %s has no server available !\n", p); + send_log(p, LOG_NOTICE, "SIGHUP: Proxy %s has no server available !\n", p); } p = p->next;