Fixed being killed by systemd for not flushing block buffer in time.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user