improved ipc log messages.

This commit is contained in:
Nick Bolton 2012-07-13 17:34:59 +00:00
parent 738c321bae
commit 764d63a5d5
2 changed files with 6 additions and 6 deletions

View File

@ -114,7 +114,7 @@ CIpcClientProxy::handleData(const CEvent&, void*)
m = parseCommand();
}
else {
LOG((CLOG_ERR "invalid message"));
LOG((CLOG_ERR "invalid ipc message"));
disconnect();
}
@ -152,7 +152,7 @@ CIpcClientProxy::send(const CIpcMessage& message)
break;
default:
LOG((CLOG_ERR "message not supported: %d", message.type()));
LOG((CLOG_ERR "ipc message not supported: %d", message.type()));
break;
}
}
@ -182,7 +182,7 @@ CIpcClientProxy::parseCommand()
void
CIpcClientProxy::disconnect()
{
LOG((CLOG_DEBUG "ipc client proxy disconnect"));
LOG((CLOG_DEBUG "ipc disconnect, closing stream"));
m_disconnecting = true;
m_stream.close();
EVENTQUEUE->addEvent(CEvent(getDisconnectedEvent(), this));

View File

@ -60,7 +60,7 @@ CIpcServerProxy::handleData(const CEvent&, void*)
m = new CIpcShutdownMessage();
}
else {
LOG((CLOG_ERR "invalid message"));
LOG((CLOG_ERR "invalid ipc message"));
disconnect();
}
@ -95,7 +95,7 @@ CIpcServerProxy::send(const CIpcMessage& message)
}
default:
LOG((CLOG_ERR "message not supported: %d", message.type()));
LOG((CLOG_ERR "ipc message not supported: %d", message.type()));
break;
}
}
@ -113,7 +113,7 @@ CIpcServerProxy::parseLogLine()
void
CIpcServerProxy::disconnect()
{
LOG((CLOG_NOTE "disconnect, closing stream"));
LOG((CLOG_DEBUG "ipc disconnect, closing stream"));
m_stream.close();
}