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 string $method
* @throws ConfigException
*/
public function output($message, string $method = 'default')
{
if ($method !== 'error' &&
Config::get('environment', 'pro') == 'pro') {
return;
}
if (str_contains($message, 'Event::rshutdown(): Event::wait()')) {
return;
}
// if ($method !== 'error' &&
// Config::get('environment', 'pro') == 'pro') {
// return;
// }
// if (str_contains($message, 'Event::rshutdown(): Event::wait()')) {
// return;
// }
echo $message;
}