Bug fix for errors thrown during Log initialisation

This commit is contained in:
2011-08-21 11:30:23 +01:00
parent 2781b63b68
commit 2f076848ea

View File

@@ -15,8 +15,6 @@ class SihnonFramework_Log {
protected $plugins = array();
public function __construct(SihnonFramework_Config $config) {
$log = SihnonFramework_Main::instance()->log();
// Get a list of the logging plugins to be used
$plugins = $config->get('logging.plugins');
@@ -32,7 +30,7 @@ class SihnonFramework_Log {
'category' => $config->get("logging.{$plugin}.{$instance}.category"),
);
} catch(SihnonFramework_Exception_LogException $e) {
SihnonFramework_LogEntry::warning($log, $e->getMessage());
SihnonFramework_LogEntry::warning($this, $e->getMessage());
}
}
}