From 881dcb0ae56e4bce91a7c1b0caffe15797dbc259 Mon Sep 17 00:00:00 2001 From: Abel Hoogeveen Date: Fri, 1 May 2015 17:59:40 +0200 Subject: [PATCH] Fixed a few logging errors --- Core/System/class.layout.php | 8 ++++---- Core/System/class.logger.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Core/System/class.layout.php b/Core/System/class.layout.php index 3f942a3..229dfae 100644 --- a/Core/System/class.layout.php +++ b/Core/System/class.layout.php @@ -132,11 +132,11 @@ class Layout extends Bus { // Load the page $this->Smarty['main']->display($vw); - $this->logger->logInfo("VIEW LOAD: '".$vw."'", "FuzeWorks->Layout", __FILE__, __LINE__); + $this->logger->logInfo("VIEW LOAD: '".$vw."'", "Layout", __FILE__, __LINE__); }catch (\SmartyException $e){ // Throw error on failure - $this->logger->logError('Could not load view '.$directory.'/'.$vw.' :: ' . $e->getMessage(), 'FuzeWorks->Layout', __FILE__, __LINE__); + $this->logger->logError('Could not load view '.$directory.'/'.$vw.' :: ' . $e->getMessage(), 'Layout', __FILE__, __LINE__); throw new Exception\Layout('Could not load view '.$directory.'/'.$vw); } } @@ -165,11 +165,11 @@ class Layout extends Bus { // Load the page return $this->Smarty['main']->fetch('view.'.$view.'.tpl'); - $this->logger->logInfo("VIEW LOAD: 'view.".$view.'.tpl'."'", "FuzeWorks->Layout", __FILE__, __LINE__); + $this->logger->logInfo("VIEW LOAD: 'view.".$view.'.tpl'."'", "Layout", __FILE__, __LINE__); }catch (\SmartyException $e){ // Throw error on failure - $this->logger->logError('Could not load view '.$directory.'/view.'.$view.'.tpl :: ' . $e->getMessage(), 'FuzeWorks->Layout', __FILE__, __LINE__); + $this->logger->logError('Could not load view '.$directory.'/view.'.$view.'.tpl :: ' . $e->getMessage(), 'Layout', __FILE__, __LINE__); throw new Exception\Layout('Could not load view '.$directory.'/view.'.$view.'.tpl'); } } diff --git a/Core/System/class.logger.php b/Core/System/class.logger.php index 479b1f2..7f5f126 100644 --- a/Core/System/class.logger.php +++ b/Core/System/class.logger.php @@ -302,8 +302,8 @@ class Logger extends Bus{ 511 => 'Network Authentication Required' ); - $this->logError('HTTP-error '.$errno.' called', 'FuzeWorks->Logger'); - $this->logInfo('Sending header HTTP/1.1 '.$errno.' '.$http_codes[$errno], 'FuzeWorks->Logger', __FILE__, __LINE__); + $this->logError('HTTP-error '.$errno.' called', 'Logger'); + $this->logInfo('Sending header HTTP/1.1 '.$errno.' '.$http_codes[$errno], 'Logger', __FILE__, __LINE__); header('HTTP/1.1 '.$errno.' '.$http_codes[$errno]); }