فهرست منبع

change default log level if logger is not setup
change default log channel if logger is not setup

CauseFX 4 سال پیش
والد
کامیت
108228a76a
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      api/classes/logger.class.php

+ 2 - 2
api/classes/logger.class.php

@@ -26,8 +26,8 @@ class OrganizrLogger extends LoggerBuilder
 	public function build(): Logger
 	{
 		if (!$this->isReady) {
-			$this->setChannel(self::DEFAULT_CHANNEL);
-			$this->setLogLevel(self::INFO);
+			$this->setChannel('Organizr');
+			$this->setLogLevel(self::DEBUG);
 			$this->setMaxFiles(1);
 		}
 		return new Logger($this);