private-mode output nothing

This commit is contained in:
crazywhalecc 2022-04-30 13:35:45 +08:00
parent 8bf5ff4e7f
commit 25d6ec3a92

View File

@ -521,7 +521,9 @@ class Framework
self::$loaded_files = get_included_files();
self::$server->start();
zm_atomic('server_is_stopped')->set(1);
Console::log('zhamao-framework is stopped.');
if (!self::$argv['private-mode']) {
Console::log('zhamao-framework is stopped.');
}
} catch (Throwable $e) {
exit(zm_internal_errcode('E00011') . 'Framework has an uncaught ' . get_class($e) . ': ' . $e->getMessage() . PHP_EOL);
}