]> granicus.if.org Git - icinga2/commitdiff
Updated log messages.
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 27 Apr 2012 09:57:14 +0000 (11:57 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 27 Apr 2012 09:57:14 +0000 (11:57 +0200)
components/demo/democomponent.cpp
icinga/jsonrpcendpoint.cpp

index 2c9de30b050e8bb847be67896a643feb784727e9..2af4a1470ffb790f5ba0914c90aadbfb5b9d0f80 100644 (file)
@@ -65,7 +65,7 @@ int DemoComponent::DemoTimerHandler(const TimerEventArgs& tea)
 
 int DemoComponent::HelloWorldRequestHandler(const NewRequestEventArgs& nrea)
 {
-       Application::Log("Got 'hello world' from address:" + nrea.Sender->GetAddress() + ", identity:" + nrea.Sender->GetIdentity());
+       Application::Log("Got 'hello world' from address=" + nrea.Sender->GetAddress() + ", identity=" + nrea.Sender->GetIdentity());
 
        return 0;
 }
index 1b56009d53453f7ecbb60e03caf1cd5f7882e2a5..16030548236f7f55d283a3497fe7265b4ef34ba8 100644 (file)
@@ -137,8 +137,7 @@ int JsonRpcEndpoint::NewMessageHandler(const NewMessageEventArgs& nmea)
 
 int JsonRpcEndpoint::ClientClosedHandler(const EventArgs& ea)
 {
-       string address = GetAddress();
-       Application::Log("Lost connection to endpoint: " + address);
+       Application::Log("Lost connection to endpoint: identity=" + GetIdentity());
 
        m_PendingCalls.clear();