Save the build log every time the log is updated.

This commit is contained in:
Dan Cryer 2014-07-31 12:27:25 +01:00
parent d42054505e
commit 410d1afe07

View file

@ -9,7 +9,7 @@
namespace PHPCI\Logging; namespace PHPCI\Logging;
use b8\Store; use b8\Store\Factory;
use Monolog\Handler\AbstractProcessingHandler; use Monolog\Handler\AbstractProcessingHandler;
use PHPCI\Model\Build; use PHPCI\Model\Build;
@ -40,5 +40,7 @@ class BuildDBLogHandler extends AbstractProcessingHandler
$this->logValue .= $message . PHP_EOL; $this->logValue .= $message . PHP_EOL;
$this->build->setLog($this->logValue); $this->build->setLog($this->logValue);
Factory::getStore('Build')->save($this->build);
} }
} }