File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99use MongoDB \Database ;
1010use MongoDB \Driver \Exception \ConnectionTimeoutException ;
1111use MongoDB \Driver \ReadPreference ;
12- use Monolog \Logger ;
1312use Psr \Log \LoggerInterface ;
1413use Tripod \Exceptions \ConfigException ;
1514use Tripod \ISearchProvider ;
@@ -84,8 +83,6 @@ class Config implements IConfigInstance
8483 OP_VIEWS => 25 ,
8584 ];
8685
87- protected static ?LoggerInterface $ logger = null ;
88-
8986 private ?array $ config = null ;
9087
9188 private ?Labeller $ labeller = null ;
@@ -869,12 +866,7 @@ public static function getResqueServer(): string
869866
870867 public static function getLogger (): LoggerInterface
871868 {
872- if (self ::$ logger == null ) {
873- $ log = new Logger ('TRIPOD ' );
874- self ::$ logger = $ log ;
875- }
876-
877- return self ::$ logger ;
869+ return DriverBase::getLogger ();
878870 }
879871
880872 /**
You can’t perform that action at this time.
0 commit comments