mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 15:02:47 +08:00
日志初始化改进
This commit is contained in:
@@ -80,9 +80,6 @@ class Log
|
||||
*/
|
||||
public static function save()
|
||||
{
|
||||
if (is_null(self::$driver)) {
|
||||
self::init(Config::get('log'));
|
||||
}
|
||||
self::$driver->save(self::$log);
|
||||
}
|
||||
|
||||
@@ -102,9 +99,6 @@ class Log
|
||||
|
||||
// 监听log_write
|
||||
APP_HOOK && Hook::listen('log_write', $log);
|
||||
if (is_null(self::$driver)) {
|
||||
self::init(Config::get('log'));
|
||||
}
|
||||
// 写入日志
|
||||
self::$driver->save($log);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user