From 12f04ffc8cb989e28f0936e89ddb846267354f49 Mon Sep 17 00:00:00 2001 From: Shizuo Fujita Date: Tue, 26 Nov 2024 15:30:30 +0900 Subject: [PATCH] supervisor: avoid method calling on nil with --daemon flag under Windows Signed-off-by: Shizuo Fujita --- lib/fluent/supervisor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fluent/supervisor.rb b/lib/fluent/supervisor.rb index a76bd1d40a..07835b96ee 100644 --- a/lib/fluent/supervisor.rb +++ b/lib/fluent/supervisor.rb @@ -450,7 +450,7 @@ def self.serverengine_config(params = {}) stop_immediately_at_unrecoverable_exit: true, root_dir: params['root_dir'], logger: $log, - log: $log.out, + log: $log&.out, log_level: params['log_level'], chuser: params['chuser'], chgroup: params['chgroup'],