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

View File

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