Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement to respect user-defined log.path in launcher.py #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion launcher/src/main/scripts/bin/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down