diff options
author | Michael Adam <obnox@samba.org> | 2013-11-08 08:53:51 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-11-09 13:34:33 +0100 |
commit | e40b91974aae069aef5c2d2d1e12b4618289646d (patch) | |
tree | d6af4369f1184e51e40a984e57d9a7730d413582 | |
parent | 22587d3d41222ba3e4ca3cd755a8662ca7ff7479 (diff) | |
download | tinyproxy-e40b91974aae069aef5c2d2d1e12b4618289646d.tar.gz tinyproxy-e40b91974aae069aef5c2d2d1e12b4618289646d.zip |
sock: add a starting debug message to listen_sock()
Signed-off-by: Michael Adam <obnox@samba.org>
-rw-r--r-- | src/sock.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -254,6 +254,9 @@ int listen_sock (const char *addr, uint16_t port, vector_t listen_fds) assert (port > 0); assert (listen_fds != NULL); + log_message(LOG_INFO, "listen_sock called with addr = '%s'", + addr == NULL ? "(NULL)" : addr); + memset (&hints, 0, sizeof (struct addrinfo)); hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_STREAM; |