Changeset

4008:36bee5ca8b95

net.server_event: Log interface and port number when binding fails
author Matthew Wild <mwild1@gmail.com>
date Thu, 06 Jan 2011 13:47:20 +0000
parents 4007:062b849ca088
children 4009:71b2c1dcf26d
files net/server_event.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_event.lua	Wed Jan 05 06:56:36 2011 +0500
+++ b/net/server_event.lua	Thu Jan 06 13:47:20 2011 +0000
@@ -726,7 +726,7 @@
 		--vdebug( "creating new tcp server with following parameters:", addr or "nil", port or "nil", sslcfg or "nil", startssl or "nil")
 		local server, err = socket.bind( addr, port, cfg.ACCEPT_QUEUE )  -- create server socket
 		if not server then
-			debug( "creating server socket failed because:", err )
+			debug( "creating server socket on "..addr.." port "..port.." failed:", err )
 			return nil, err
 		end
 		local sslctx