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

[ANCHOR-610] Fix log level #1268

Merged
merged 3 commits into from
Feb 9, 2024
Merged

[ANCHOR-610] Fix log level #1268

merged 3 commits into from
Feb 9, 2024

Conversation

Ifropc
Copy link
Contributor

@Ifropc Ifropc commented Feb 8, 2024

Description

Remove hardcoded DEBUG level of Stellar and add support of dynamic logging configuration reload

Context

Previously, it was impossible to set DEBUG level to Stellar level config

Testing

Manually tested with different log levels

Documentation

N/A

Known limitations

N/A

@Ifropc Ifropc requested a review from philipliu February 8, 2024 21:32
.forEach(
(String cfgName, Object cfgValue) -> {
if (cfgName.startsWith("logging.level") && cfgValue instanceof String) {
LoggingSystem system =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Do we need to call this for every source?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually not, but it's just for one partner in the legacy branch (and most likely they will only use it for debug logs), so I decided to keep it simple

@@ -53,12 +53,4 @@ Configutation:
level: info
AppenderRef:
- ref: ${env:LOG_APPENDER:-console_appender}
Logger:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are the log levels set to after removing this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default is always INFO

@Ifropc Ifropc merged commit e13816a into legacy/main-1.2 Feb 9, 2024
2 checks passed
@Ifropc Ifropc deleted the ANCHOR-610-log-level branch February 9, 2024 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants