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

Fix undertow access_log file name #4670

Closed
wants to merge 1 commit into from
Closed

Fix undertow access_log file name #4670

wants to merge 1 commit into from

Conversation

sebhoss
Copy link

@sebhoss sebhoss commented Dec 3, 2015

Undertow 1.3.7 changed the default access log file suffix from '.log' to just 'log'. Thus we need to adapt the file name pattern to include the missing dot.

Otherwise the resulting access log file will be called access_loglog instead of access_log.log.

Undertow 1.3.7 changed the default access log file suffix from '.log' to
just 'log'. Thus we need to adapt the file name pattern to include the
missing dot.

Signed-off-by: Sebastian Hoß <mail@shoss.de>
@sebhoss
Copy link
Author

sebhoss commented Dec 3, 2015

The change in undertow was done in undertow-io/undertow@5e655ea

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 3, 2015
@wilkinsona wilkinsona added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 3, 2015
@wilkinsona wilkinsona added this to the 1.3.1 milestone Dec 3, 2015
@wilkinsona wilkinsona self-assigned this Dec 3, 2015
@wilkinsona wilkinsona closed this in e233ea7 Dec 3, 2015
wilkinsona added a commit that referenced this pull request Dec 3, 2015
@wilkinsona
Copy link
Member

Thanks for the PR. I've merged the change into master and added a test so that we'll hopefully notice similar changes in Undertow in the future.

wilkinsona added a commit that referenced this pull request Dec 3, 2015
Previously, the test that verified that Undertow's access log could be
enabled and was written to the correct file expected the log to be
available as soon as the request to the server had completed. Undertow
writes the access log asynchronously so the test failed intermittently
due to a race between the access log being written and the test
asserting that it exists.

This commit updates the test to wait for up to 10 seconds for the
access log to be available.

See gh-4670
@sebhoss
Copy link
Author

sebhoss commented Dec 3, 2015

Great, thanks a lot!

@sebhoss sebhoss deleted the undertow_access_log_fix branch December 5, 2015 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants