openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit c49985295da41fdfdedd0623a0786614560e8d11
parent b7101a005ff019c8043b811ed34ae1df5accf034
Author: Jan Dankert <devnull@localhost>
Date:   Sat,  4 Oct 2014 00:25:37 +0200

Loggen, wenn Systemkommando fehlschlägt.

Diffstat:
util/Publish.class.php | 12++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/util/Publish.class.php b/util/Publish.class.php @@ -305,7 +305,7 @@ class Publish $this->ftp->close(); } - // Ausf�hren des Systemkommandos. + // Ausfuehren des Systemkommandos. if ( !empty($this->cmd_after_publish) && $this->ok ) { $ausgabe = array(); @@ -317,8 +317,16 @@ class Publish { $this->log = $ausgabe; $this->log[] = 'OpenRat: System command failed - returncode is '.$rc; - $this->ok = false; + $this->ok = false; + + Logger::warn('System command '.$this->cmd_after_publish.' failed with status '.$rc ); + + } + else + { + Logger::debug('System command successful' ); } + } }