mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
Remove unnecessary logging
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@10252 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
4d7a3cb0ae
commit
a8fc6bf14d
@ -30,7 +30,6 @@ PollEngine::~PollEngine()
|
||||
bool PollEngine::AddFd(EventHandler* eh)
|
||||
{
|
||||
int fd = eh->GetFd();
|
||||
ServerInstance->Log(DEBUG, "trying to add fd %d", fd);
|
||||
if ((fd < 0) || (fd > MAX_DESCRIPTORS))
|
||||
return false;
|
||||
|
||||
@ -44,12 +43,10 @@ bool PollEngine::AddFd(EventHandler* eh)
|
||||
events[fd].fd = fd;
|
||||
if (eh->Readable())
|
||||
{
|
||||
ServerInstance->Log(DEBUG, "readable");
|
||||
events[fd].events = POLLIN;
|
||||
}
|
||||
else
|
||||
{
|
||||
ServerInstance->Log(DEBUG, "writable");
|
||||
events[fd].events = POLLOUT;
|
||||
}
|
||||
|
||||
@ -97,8 +94,6 @@ int PollEngine::DispatchEvents()
|
||||
int errcode;
|
||||
int processed = 0;
|
||||
|
||||
ServerInstance->Log(DEBUG, "poll returned %d", i);
|
||||
|
||||
if (i > 0)
|
||||
{
|
||||
for (fd = 0; fd < MAX_DESCRIPTORS && processed != i; fd++)
|
||||
@ -106,7 +101,6 @@ int PollEngine::DispatchEvents()
|
||||
if (events[fd].revents)
|
||||
processed++;
|
||||
|
||||
ServerInstance->Log(DEBUG, "revents on %d are %d", fd, events[fd].revents);
|
||||
if (events[fd].revents & POLLHUP)
|
||||
{
|
||||
if (ref[fd])
|
||||
|
Loading…
x
Reference in New Issue
Block a user