-
Notifications
You must be signed in to change notification settings - Fork 499
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
services/horizon: Allow customization of the Captive Core log file. #3472
Conversation
Now, we either log to Horizon's subservice=stellar-core or we pass along to Stellar-Core's LOG_FILE_PATH="..." based on the value of the above parameter.
CaptiveCoreBinaryPath: app.config.CaptiveCoreBinaryPath, | ||
CaptiveCoreConfigAppendPath: app.config.CaptiveCoreConfigAppendPath, | ||
CaptiveCoreHTTPPort: app.config.CaptiveCoreHTTPPort, | ||
CaptiveCoreLogPath: app.config.CaptiveCoreLogPath, | ||
RemoteCaptiveCoreURL: app.config.RemoteCaptiveCoreURL, | ||
EnableCaptiveCore: app.config.EnableCaptiveCoreIngestion, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As an informational question, why do we do this, rather than passing along app.config directly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's clear which global config variables are used by the component. I know that we sometimes pass entire config
in other places in Horizon but I believe we should only pass specific values.
CaptiveCoreBinaryPath: app.config.CaptiveCoreBinaryPath, | ||
CaptiveCoreConfigAppendPath: app.config.CaptiveCoreConfigAppendPath, | ||
CaptiveCoreHTTPPort: app.config.CaptiveCoreHTTPPort, | ||
CaptiveCoreLogPath: app.config.CaptiveCoreLogPath, | ||
RemoteCaptiveCoreURL: app.config.RemoteCaptiveCoreURL, | ||
EnableCaptiveCore: app.config.EnableCaptiveCoreIngestion, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's clear which global config variables are used by the component. I know that we sometimes pass entire config
in other places in Horizon but I believe we should only pass specific values.
Co-authored-by: Bartek Nowotarski <bartek@nowotarski.info>
PR Checklist
PR Structure
otherwise).
services/friendbot
, orall
ordoc
if the changes are broad or impact manypackages.
Thoroughness
.md
files, etc... affected by this change). Take a look in the
docs
folder for a given service,like this one.
Release planning
needed with deprecations, added features, breaking changes, and DB schema changes.
semver, or if it's mainly a patch change. The PR is targeted at the next
release branch if it's not a patch change.
What
This introduces the
--captive-core-log-path
parameter, which sets Stellar Core'sLOG_FILE_PATH
in the auto-generated configuration accordingly. If it's not set, Horizon will continue to log Captive Core's output to its log path withsubservice=stellar-core
.Why
Closes #3438
Known limitations
n/a