From 243e510185ed16e01b347a1d1f35e08592ec5b4d Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 28 Feb 2006 18:37:18 +0000 Subject: Extra error output when fails to bind a port git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3382 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd_io.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/inspircd_io.cpp') diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index 10eeca525..60673d203 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -1238,12 +1238,12 @@ int BindPorts() { if ((openSockfd[BoundPortCount] = OpenTCPSocket()) == ERROR) { - log(DEBUG,"InspIRCd: startup: bad fd %lu",(unsigned long)openSockfd[BoundPortCount]); + log(DEBUG,"InspIRCd: startup: bad fd %lu binding port [%s:%d]",(unsigned long)openSockfd[BoundPortCount],Config->addrs[count],(unsigned long)Config->ports[count]); return(ERROR); } if (BindSocket(openSockfd[BoundPortCount],client,server,Config->ports[count],Config->addrs[count]) == ERROR) { - log(DEFAULT,"InspIRCd: startup: failed to bind port %lu",(unsigned long)Config->ports[count]); + log(DEFAULT,"InspIRCd: startup: failed to bind port [%s:%lu]: %s",Config->addrs[count],(unsigned long)Config->ports[count],strerror(errno)); } else /* well we at least bound to one socket so we'll continue */ { -- cgit v1.2.3