From b8439309a82f716d9d2fe2b8fadd5f657c8f9c59 Mon Sep 17 00:00:00 2001 From: "kedia,Akanksha" Date: Fri, 22 Mar 2024 12:17:38 +0530 Subject: [PATCH] Enhancement to respect user-defined log.path in launcher.py --- launcher/src/main/scripts/bin/launcher.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/launcher/src/main/scripts/bin/launcher.py b/launcher/src/main/scripts/bin/launcher.py index d7411883e2..3342cae507 100755 --- a/launcher/src/main/scripts/bin/launcher.py +++ b/launcher/src/main/scripts/bin/launcher.py @@ -432,11 +432,13 @@ def main(): node_properties = load_properties(o.node_config) data_dir = node_properties.get('node.data-dir') + server_dir = node_properties.get('log.path') o.data_dir = realpath(options.data_dir or data_dir or o.install_path) + o.server_dir = realpath(getattr(options, 'server_dir', None) or server_dir or pathjoin(o.data_dir, 'var/log/server.log')) o.pid_file = realpath(options.pid_file or pathjoin(o.data_dir, 'var/run/launcher.pid')) o.launcher_log = realpath(options.launcher_log_file or pathjoin(o.data_dir, 'var/log/launcher.log')) - o.server_log = realpath(options.server_log_file or pathjoin(o.data_dir, 'var/log/server.log')) + o.server_log = realpath(o.server_dir or options.server_log_file or pathjoin(o.data_dir, 'var/log/server.log')) o.properties = parse_properties(parser, options.properties or {}) for k, v in node_properties.items():