This commit is contained in:
2021-08-12 17:21:34 +08:00
parent 782d4a6a77
commit 76fa5b89c9
+7 -8
View File
@@ -142,17 +142,16 @@ class Logger extends Component
/** /**
* @param $message * @param $message
* @param string $method * @param string $method
* @throws ConfigException
*/ */
public function output($message, string $method = 'default') public function output($message, string $method = 'default')
{ {
if ($method !== 'error' && // if ($method !== 'error' &&
Config::get('environment', 'pro') == 'pro') { // Config::get('environment', 'pro') == 'pro') {
return; // return;
} // }
if (str_contains($message, 'Event::rshutdown(): Event::wait()')) { // if (str_contains($message, 'Event::rshutdown(): Event::wait()')) {
return; // return;
} // }
echo $message; echo $message;
} }