diff options
| author | 2006-07-28 12:24:10 +0000 | |
|---|---|---|
| committer | 2006-07-28 12:24:10 +0000 | |
| commit | e7c9c24756adfd065bdb6ca9e17888c2e867f60d (patch) | |
| tree | c1c8b97f21468fb8e0e0f0ff5cec73fb8f884d37 /src/socket.cpp | |
| parent | Fix to not hide invisible users non-common channels in whois (rfc doesnt stat... (diff) | |
Added some detail to the socket() and bind() log messages
git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4573 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socket.cpp')
| -rw-r--r-- | src/socket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index a831d8060..e25e096c6 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -203,7 +203,7 @@ bool InspSocket::BindAddr() s.sin_family = AF_INET; if (bind(this->fd,(struct sockaddr*)&s,sizeof(s)) < 0) { - log(DEBUG,"Cant bind()"); + log(DEBUG,"Cant bind(): %s", strerror(errno)); this->state = I_ERROR; this->OnError(I_ERR_BIND); this->fd = -1; @@ -228,7 +228,7 @@ bool InspSocket::DoConnect() log(DEBUG,"In DoConnect()"); if ((this->fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) { - log(DEBUG,"Cant socket()"); + log(DEBUG,"Cant socket(): %s", strerror(errno)); this->state = I_ERROR; this->OnError(I_ERR_SOCKET); this->ClosePending = true; |
