]> git.sur5r.net Git - bacula/bacula/commitdiff
Add more info when SD connection refused
authorKern Sibbald <kern@sibbald.com>
Thu, 10 Sep 2009 13:19:13 +0000 (15:19 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 10 Sep 2009 13:42:55 +0000 (15:42 +0200)
as mentioned in bug #1371

bacula/src/stored/dircmd.c

index 3e1e613c6fd0bd9a1631971f50ceafa8e08dc8bc..fa1e0efc2537419a5d384c563704ea1de2cbe463 100644 (file)
@@ -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, "<filed: %s", bs->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;
    }