From 362136b89adedbf112beb354e31b0e9b763db37f Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 1 Oct 2014 12:48:13 +0200 Subject: swrap: Add a trace message for swrap_socket(). Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- src/socket_wrapper.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c index 8a7b572..6a495b9 100644 --- a/src/socket_wrapper.c +++ b/src/socket_wrapper.c @@ -2430,6 +2430,11 @@ static int swrap_socket(int family, int type, int protocol) SWRAP_DLIST_ADD(si->fds, fi); SWRAP_DLIST_ADD(sockets, si); + SWRAP_LOG(SWRAP_LOG_TRACE, + "Created %s socket for protocol %s", + si->family == AF_INET ? "IPv4" : "IPv6", + si->type == SOCK_DGRAM ? "UDP" : "TCP"); + return fd; } -- cgit