From e8a3bf82c61f5e9087eb282ea245a216e4a88c0a Mon Sep 17 00:00:00 2001 From: LoveSy Date: Tue, 4 Mar 2025 08:21:55 +0800 Subject: [PATCH] set exit code of log ExitOnError to -1 --- native/src/base/logging.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/src/base/logging.rs b/native/src/base/logging.rs index 28465cc82..a44736879 100644 --- a/native/src/base/logging.rs +++ b/native/src/base/logging.rs @@ -84,7 +84,7 @@ fn log_with_writer(level: LogLevel, f: F) { } f(logger.write); if matches!(level, LogLevel::ErrorCxx) && (logger.flags & LogFlag::ExitOnError) != 0 { - exit(1); + exit(-1); } }