From aae1d05684400628556e2a7415c8c4625bed220a Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 7 Apr 2015 10:34:55 +0200 Subject: [PATCH] Fetch the log path from the configuration ...instead of using a getter that has been dropped carelessly. fixes #8972 --- application/controllers/ListController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/controllers/ListController.php b/application/controllers/ListController.php index d55381987..feaf13921 100644 --- a/application/controllers/ListController.php +++ b/application/controllers/ListController.php @@ -3,6 +3,7 @@ use Icinga\Module\Monitoring\Controller; use Icinga\Web\Url; +use Icinga\Application\Config; use Icinga\Application\Logger; use Icinga\Data\ConfigObject; use Icinga\Protocol\File\FileReader; @@ -44,11 +45,10 @@ class ListController extends Controller $pattern = '/^(?[0-9]{4}(-[0-9]{2}){2}' // date . 'T[0-9]{2}(:[0-9]{2}){2}([\\+\\-][0-9]{2}:[0-9]{2})?)' // time . ' - (?[A-Za-z]+)' // loglevel - . ' - (?.*)$/'; // message + . ' - (?.*)$/'; - $loggerWriter = Logger::getInstance()->getWriter(); $resource = new FileReader(new ConfigObject(array( - 'filename' => $loggerWriter->getPath(), + 'filename' => Config::app()->get('logging', 'file'), 'fields' => $pattern ))); $this->view->logData = $resource->select()->order('DESC')->paginate();