monitoring: Don't translate exception messages in the local command file

This commit is contained in:
Eric Lippmann 2014-10-29 10:00:29 +01:00
parent 6973492b0d
commit 1cc1521607
1 changed files with 9 additions and 9 deletions

View File

@ -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