Skip to content

SLING-13137 Improve logging when file logger creation fails#73

Merged
joerghoh merged 3 commits intoapache:masterfrom
aswinad:fix/request-logger-creation-logging
Mar 25, 2026
Merged

SLING-13137 Improve logging when file logger creation fails#73
joerghoh merged 3 commits intoapache:masterfrom
aswinad:fix/request-logger-creation-logging

Conversation

@aswinad
Copy link
Copy Markdown
Contributor

@aswinad aswinad commented Mar 16, 2026

SLING-13105

Improve diagnostics when file logger creation fails in RequestLoggerService.

When an IOException occurs during file logger creation, the error is now
logged using SLF4J and includes the resolved absolute log file path.
This makes configuration issues easier to diagnose while preserving
the existing fallback behavior.

Changes:

  • Log IOException when file logger creation fails
  • Include resolved absolute path in the log message
  • Preserve existing fallback behavior

Copy link
Copy Markdown
Contributor

@joerghoh joerghoh left a comment

Choose a reason for hiding this comment

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

lgtm with a tiny nitpick.

…rvice.java

Co-authored-by: Jörg Hoh <joerghoh@users.noreply.github.com>
@sonarqubecloud
Copy link
Copy Markdown

@aswinad
Copy link
Copy Markdown
Contributor Author

aswinad commented Mar 17, 2026

Thanks! Applied the suggestion.

@aswinad
Copy link
Copy Markdown
Contributor Author

aswinad commented Mar 24, 2026

Hi @joerghoh — gentle ping. This PR is approved and all checks are passing.
I don’t have merge permissions; would you mind merging when convenient?
(Also, PR [#74] is in a similar state.)
Thanks!

@joerghoh joerghoh merged commit c2edfde into apache:master Mar 25, 2026
1 check passed
@joerghoh
Copy link
Copy Markdown
Contributor

thanks @aswinad for your contribution! it's applied now.

Can you update the ticket:

  • set the ticket tor resolved
  • set the FixedVersion to "next" unreleased version of "Engine"?

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