summaryrefslogtreecommitdiff
path: root/src/inspircd_io.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-28 18:37:18 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-28 18:37:18 +0000
commit243e510185ed16e01b347a1d1f35e08592ec5b4d (patch)
tree8371987524135d7cdb8667cf6d80a4cfd2ad4c4e /src/inspircd_io.cpp
parente9001885478b51dad173ddc2f93170db2591a8be (diff)
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
Diffstat (limited to 'src/inspircd_io.cpp')
-rw-r--r--src/inspircd_io.cpp4
1 files changed, 2 insertions, 2 deletions
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 */
{