[icinga-checkins] icinga.org: icinga2/next: Fix wrong logging in ExternalCommandListener

git at icinga.org git at icinga.org
Thu Jun 12 22:51:35 CEST 2014


Module: icinga2
Branch: next
Commit: 9e026959db3b4dcb148b430568e9f2f4ae7c4ff5
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=9e026959db3b4dcb148b430568e9f2f4ae7c4ff5

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Thu Jun 12 22:51:20 2014 +0200

Fix wrong logging in ExternalCommandListener

---

 components/compat/externalcommandlistener.cpp |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/components/compat/externalcommandlistener.cpp b/components/compat/externalcommandlistener.cpp
index c51c6cb..91ad0a5 100644
--- a/components/compat/externalcommandlistener.cpp
+++ b/components/compat/externalcommandlistener.cpp
@@ -83,7 +83,7 @@ void ExternalCommandListener::CommandPipeThread(const String& commandPath)
 	if (!fifo_ok && mkfifo(commandPath.CStr(), S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP) < 0) {
 		std::ostringstream msgbuf;
 		msgbuf << "mkfifo() for fifo path '" << commandPath << "'failed with error code " << errno << ", \"" << Utility::FormatErrorNumber(errno) << "\"";
-		Log(LogCritical, "LivestatusListener",  msgbuf.str());
+		Log(LogCritical, "ExternalCommandListener",  msgbuf.str());
 		return;
 	}
 
@@ -92,7 +92,7 @@ void ExternalCommandListener::CommandPipeThread(const String& commandPath)
 	if (chmod(commandPath.CStr(), mode) < 0) {
 		std::ostringstream msgbuf;
 		msgbuf << "chmod() on fifo '" << commandPath << "'failed with error code " << errno << ", \"" << Utility::FormatErrorNumber(errno) << "\"";
-		Log(LogCritical, "LivestatusListener",  msgbuf.str());
+		Log(LogCritical, "ExternalCommandListener",  msgbuf.str());
 		return;
 	}
 
@@ -106,7 +106,7 @@ void ExternalCommandListener::CommandPipeThread(const String& commandPath)
 		if (fd < 0) {
 			std::ostringstream msgbuf;
 			msgbuf << "open() for fifo path '" << commandPath << "'failed with error code " << errno << ", \"" << Utility::FormatErrorNumber(errno) << "\"";
-			Log(LogCritical, "LivestatusListener",  msgbuf.str());
+			Log(LogCritical, "ExternalCommandListener",  msgbuf.str());
 			return;
 		}
 
@@ -115,7 +115,7 @@ void ExternalCommandListener::CommandPipeThread(const String& commandPath)
 		if (fp == NULL) {
 			std::ostringstream msgbuf;
 			msgbuf << "fdopen() for fifo path '" << commandPath << "'failed with error code " << errno << ", \"" << Utility::FormatErrorNumber(errno) << "\"";
-			Log(LogCritical, "LivestatusListener",  msgbuf.str());
+			Log(LogCritical, "ExternalCommandListener",  msgbuf.str());
 			return;
 		}
 



More information about the icinga-checkins mailing list