From 1cc152160785fc657e1e644dc7128294ca5edee1 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 29 Oct 2014 10:00:29 +0100 Subject: [PATCH] monitoring: Don't translate exception messages in the local command file --- .../Command/Transport/LocalCommandFile.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/monitoring/library/Monitoring/Command/Transport/LocalCommandFile.php b/modules/monitoring/library/Monitoring/Command/Transport/LocalCommandFile.php index 2fc68d315..83c066e97 100644 --- a/modules/monitoring/library/Monitoring/Command/Transport/LocalCommandFile.php +++ b/modules/monitoring/library/Monitoring/Command/Transport/LocalCommandFile.php @@ -17,6 +17,11 @@ use Icinga\Util\File; */ class LocalCommandFile implements CommandTransportInterface { + /** + * Transport identifier + */ + const TRANSPORT = 'local'; + /** * Path to the icinga command file * @@ -108,11 +113,9 @@ class LocalCommandFile implements CommandTransportInterface } $commandString = $this->renderer->render($command, $now); Logger::debug( - sprintf( - mt('monitoring', 'Sending external Icinga command "%s" to the local command file "%s"'), - $commandString, - $this->path - ) + 'Sending external Icinga command "%s" to the local command file "%s"', + $commandString, + $this->path ); try { $file = new File($this->path, $this->openMode); @@ -120,10 +123,7 @@ class LocalCommandFile implements CommandTransportInterface $file->fflush(); } catch (Exception $e) { throw new TransportException( - mt( - 'monitoring', - 'Can\'t send external Icinga command "%s" to the local command file "%s": %s' - ), + 'Can\'t send external Icinga command "%s" to the local command file "%s": %s', $commandString, $this->path, $e