Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix logger init
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jun 6, 2016
1 parent 2a77d7b commit baf6bd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/plugins/core.log/class.AJXP_Logger.php
Expand Up @@ -21,6 +21,7 @@
namespace Pydio\Log\Core;

use Pydio\Access\Core\Model\UserSelection;
use Pydio\Core\Model\Context;
use Pydio\Core\Model\ContextInterface;
use Pydio\Core\Services\AuthService;
use Pydio\Core\Services\ConfService;
Expand Down Expand Up @@ -319,7 +320,7 @@ public static function getInstance()
{
if (!isset(self::$loggerInstance)) {
$p = PluginsService::findPlugin("core", "log");
if(is_object($p)) $p->init(array());
if(is_object($p)) $p->init(Context::fromGlobalServices(), array());
}
return self::$loggerInstance;
}
Expand Down

0 comments on commit baf6bd0

Please sign in to comment.