Added marginal logger changes
This commit is contained in:
parent
172bed55b9
commit
8fc17c2a91
|
@ -117,6 +117,9 @@ class Core
|
||||||
// Fix Apache bug where CWD is changed upon shutdown
|
// Fix Apache bug where CWD is changed upon shutdown
|
||||||
chdir(self::$cwd);
|
chdir(self::$cwd);
|
||||||
|
|
||||||
|
// Log the shutdown
|
||||||
|
Logger::logInfo("Shutting FuzeWorks down gracefully");
|
||||||
|
|
||||||
// Fire the Shutdown event
|
// Fire the Shutdown event
|
||||||
$event = Events::fireEvent('coreShutdownEvent');
|
$event = Events::fireEvent('coreShutdownEvent');
|
||||||
|
|
||||||
|
|
|
@ -218,7 +218,7 @@ class Logger {
|
||||||
if ($error !== null) {
|
if ($error !== null) {
|
||||||
// Log it!
|
// Log it!
|
||||||
$thisType = self::getType($error['type']);
|
$thisType = self::getType($error['type']);
|
||||||
$LOG = array('type' => $error['type'],
|
$LOG = array('type' => (!is_null($thisType) ? $thisType : 'ERROR'),
|
||||||
'message' => $error['message'],
|
'message' => $error['message'],
|
||||||
'logFile' => $error['file'],
|
'logFile' => $error['file'],
|
||||||
'logLine' => $error['line'],
|
'logLine' => $error['line'],
|
||||||
|
|
|
@ -180,7 +180,7 @@ class Plugins
|
||||||
$h->init();
|
$h->init();
|
||||||
|
|
||||||
// And log it
|
// And log it
|
||||||
Factory::getInstance()->logger->log('Loaded Plugin Header: \'' . $pluginName . '\'');
|
Logger::log('Loaded Plugin Header: \'' . $pluginName . '\'');
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -257,7 +257,7 @@ class Plugins
|
||||||
if (method_exists($header, 'getPlugin'))
|
if (method_exists($header, 'getPlugin'))
|
||||||
{
|
{
|
||||||
$this->plugins[$pluginName] = $header->getPlugin();
|
$this->plugins[$pluginName] = $header->getPlugin();
|
||||||
Factory::getInstance()->logger->log('Loaded Plugin: \'' . $pluginName . '\'');
|
Logger::log('Loaded Plugin: \'' . $pluginName . '\'');
|
||||||
return $this->plugins[$pluginName];
|
return $this->plugins[$pluginName];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -281,7 +281,7 @@ class Plugins
|
||||||
throw new PluginException("Could not load plugin. Class does not exist", 1);
|
throw new PluginException("Could not load plugin. Class does not exist", 1);
|
||||||
}
|
}
|
||||||
$this->plugins[$pluginName] = new $className($parameters);
|
$this->plugins[$pluginName] = new $className($parameters);
|
||||||
Factory::getInstance()->logger->log('Loaded Plugin: \'' . $pluginName . '\'');
|
Logger::log('Loaded Plugin: \'' . $pluginName . '\'');
|
||||||
|
|
||||||
// And return it
|
// And return it
|
||||||
return $this->plugins[$pluginName];
|
return $this->plugins[$pluginName];
|
||||||
|
|
Loading…
Reference in New Issue