From 410d1afe0776383e7e759942721fdf533ab79a71 Mon Sep 17 00:00:00 2001 From: Dan Cryer Date: Thu, 31 Jul 2014 12:27:25 +0100 Subject: [PATCH] Save the build log every time the log is updated. --- PHPCI/Logging/BuildDBLogHandler.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PHPCI/Logging/BuildDBLogHandler.php b/PHPCI/Logging/BuildDBLogHandler.php index 3c03c501..782471db 100644 --- a/PHPCI/Logging/BuildDBLogHandler.php +++ b/PHPCI/Logging/BuildDBLogHandler.php @@ -9,7 +9,7 @@ namespace PHPCI\Logging; -use b8\Store; +use b8\Store\Factory; use Monolog\Handler\AbstractProcessingHandler; use PHPCI\Model\Build; @@ -40,5 +40,7 @@ class BuildDBLogHandler extends AbstractProcessingHandler $this->logValue .= $message . PHP_EOL; $this->build->setLog($this->logValue); + + Factory::getStore('Build')->save($this->build); } }