From 764d63a5d59bb49e00a0cb204950b7f5e486c6e0 Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Fri, 13 Jul 2012 17:34:59 +0000 Subject: [PATCH] improved ipc log messages. --- src/lib/ipc/CIpcClientProxy.cpp | 6 +++--- src/lib/ipc/CIpcServerProxy.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/ipc/CIpcClientProxy.cpp b/src/lib/ipc/CIpcClientProxy.cpp index 73358b4c..96805eb6 100644 --- a/src/lib/ipc/CIpcClientProxy.cpp +++ b/src/lib/ipc/CIpcClientProxy.cpp @@ -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)); diff --git a/src/lib/ipc/CIpcServerProxy.cpp b/src/lib/ipc/CIpcServerProxy.cpp index e7467a81..b942ea5d 100644 --- a/src/lib/ipc/CIpcServerProxy.cpp +++ b/src/lib/ipc/CIpcServerProxy.cpp @@ -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(); }