summaryrefslogtreecommitdiff
path: root/server/dispatch.c
diff options
context:
space:
mode:
authorGravatar Kenneth G Raeburn <raeburn@mit.edu>1991-05-13 09:14:46 +0000
committerGravatar Kenneth G Raeburn <raeburn@mit.edu>1991-05-13 09:14:46 +0000
commit16f0b1e0df231c91d5552619f3a94c8012682324 (patch)
treef5095698af99f1b64f9d02b7488fe8b442f14e33 /server/dispatch.c
parent757ffcafa223ed96c36aa626b4f3ca502e951185 (diff)
put more info in log messages
Diffstat (limited to 'server/dispatch.c')
-rw-r--r--server/dispatch.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/server/dispatch.c b/server/dispatch.c
index db12242..ea873d9 100644
--- a/server/dispatch.c
+++ b/server/dispatch.c
@@ -741,7 +741,7 @@ nack_cancel(register ZNotice_t *notice, struct sockaddr_in *who)
/* search the not-yet-acked list for this packet, and
flush it. */
-#if 1
+#if 0
zdbug((LOG_DEBUG, "nack_cancel: %s:%08X,%08X",
inet_ntoa (notice->z_uid.zuid_addr),
notice->z_uid.tv.tv_sec, notice->z_uid.tv.tv_usec));
@@ -887,12 +887,14 @@ control_dispatch(ZNotice_t *notice, int auth, sockaddr_in *who,
if (zdebug) {
if (server == me_server)
syslog (LOG_DEBUG,
- "subscription cancel for %s\n",
- inet_ntoa (who->sin_addr));
+ "subscription cancel for %s/%d\n",
+ inet_ntoa (who->sin_addr),
+ ntohs (who->sin_port));
else
syslog (LOG_DEBUG,
- "subscription cancel for %s from %s\n",
+ "subscription cancel for %s/%d from %s\n",
inet_ntoa (who->sin_addr),
+ ntohs (who->sin_port),
server->addr);
}
#endif
@@ -917,8 +919,9 @@ control_dispatch(ZNotice_t *notice, int auth, sockaddr_in *who,
#if 1
if (zdebug)
syslog(LOG_DEBUG,
- "cancelsub clt_dereg %s",
- inet_ntoa (who->sin_addr));
+ "cancelsub clt_dereg %s/%d",
+ inet_ntoa (who->sin_addr),
+ ntohs (who->sin_port));
#endif
hostm_lose_ignore(client);
(void) client_deregister(client, host, 0);