Fixed being killed by systemd for not flushing block buffer in time.

This commit is contained in:
2026-06-07 12:20:46 +08:00
parent 777c8b2021
commit 5cbbe8213b
2 changed files with 14 additions and 2 deletions
+2
View File
@@ -16,6 +16,8 @@ class MethodExecutor
@@rst_counter = 0
# Initialize the standard log system.
@@logger = Logger.new(STDOUT) # This script will be launched as a systemd server.
STDOUT.sync = true
STDERR.sync = true
# Fetch the environmental variable and convert it into log level.
@@logger.level = case ENV["LOG_LEVEL"] # @为单个实例(半生不熟的概念,貌似是在不同的空间独立创建),@@为共享同一个
when nil # Default config.