Skip to content

Fix failure to launch Fluentd on Windows with log rotation but not specifying the log path in the command line - #4188

Merged
ashie merged 1 commit into
fluent:masterfrom
daipom:fix-logger-setup-failure
May 30, 2023
Merged

Fix failure to launch Fluentd on Windows with log rotation but not specifying the log path in the command line#4188
ashie merged 1 commit into
fluent:masterfrom
daipom:fix-logger-setup-failure

Conversation

@daipom

@daipom daipom commented May 29, 2023

Copy link
Copy Markdown
Contributor

Which issue(s) this PR fixes:
Fixes #4187

What this PR does / why we need it:
Fix a bug of f8b73a5 (#4091).

Before that fix, Fluentd can start if rotation is enabled but the log file path is not specified.
After that fix, the logger setup starts to fail on Windows.

This fix solves it.

Docs Changes:
Not needed.

Release Note:
Same as the title.

Fix a bug of f8b73a5 (fluent#4091).

Before that fix, Fluentd can start if rotation is enabled but the log file path
is not specified.
After that fix, the logger setup starts to fail on Windows.

This fix solves it.

Signed-off-by: Daijiro Fukuda <fukuda@clear-code.com>
@ashie
ashie self-requested a review May 29, 2023 06:59
@ashie

ashie commented May 30, 2023

Copy link
Copy Markdown
Member

Hmm, although it's not a problem of this PR, time out occurs on Ruby head:
https://github.com/fluent/fluentd/actions/runs/5108944850/jobs/9183231391?pr=4188

@ashie
ashie merged commit dcc05e5 into fluent:master May 30, 2023
@ashie

ashie commented May 30, 2023

Copy link
Copy Markdown
Member

Thanks!

@daipom
daipom deleted the fix-logger-setup-failure branch May 30, 2023 03:03
@daipom

daipom commented May 30, 2023

Copy link
Copy Markdown
Contributor Author

Thanks for your review!

@daipom daipom added this to the v1.16.2 milestone Oct 9, 2023
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.

Logger: Fails to launch Fluentd without specifying the path in the command line options on Windows with rotation

2 participants