From: Kern Sibbald Date: Thu, 10 Sep 2009 13:19:13 +0000 (+0200) Subject: Add more info when SD connection refused X-Git-Tag: Release-5.0.0~316^2~14 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=729f8b83b1002ae272e75a6139631846946f728f;p=bacula%2Fbacula Add more info when SD connection refused as mentioned in bug #1371 --- diff --git a/bacula/src/stored/dircmd.c b/bacula/src/stored/dircmd.c index 4f4a2d72f9..b011802780 100644 --- a/bacula/src/stored/dircmd.c +++ b/bacula/src/stored/dircmd.c @@ -152,7 +152,7 @@ void *handle_connection_request(void *arg) char tbuf[100]; if (bs->recv() <= 0) { - Emsg0(M_ERROR, 0, _("Connection request failed.\n")); + Emsg1(M_ERROR, 0, _("Connection request from %s failed.\n"), bs->who()); bs->close(); return NULL; } @@ -162,7 +162,7 @@ void *handle_connection_request(void *arg) */ if (bs->msglen < 25 || bs->msglen > (int)sizeof(name)) { Dmsg1(000, "msg); - Emsg1(M_ERROR, 0, _("Invalid connection. Len=%d\n"), bs->msglen); + Emsg2(M_ERROR, 0, _("Invalid connection from %s. Len=%d\n"), bs->who(), bs->msglen); bs->close(); return NULL; }