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

Give StaticFileConfig a proper toString #2077

Merged
merged 1 commit into from Jan 10, 2024

Conversation

MariusVolkhart
Copy link
Contributor

This gets invoked and presented on the console during startup, and shows which mimetypes are registered for a file extension. Previously, the message included something like

2024-01-09 21:20:03,840 INFO  i.j.Javalin Static file handler added: StaticFileConfig(
hostedPath=/, directory=src/main/resources/public, location=EXTERNAL, precompress=false, 
aliasCheck=null, headers={Cache-Control=max-age=0}, 
mimeTypes=io.javalin.http.staticfiles.MimeTypesConfig@46d567cb). 
File system location: 'src/main/resources/public'

Note the mimeTypes=io.javalin.http.staticfiles.MimeTypesConfig@46d567cb.

It now is formatted as mimeTypes={csv=text/csv}, or just {} if it's empty.

This gets invoked and presented on the console during startup, and shows which mimetypes are registered for a file extension. Previously, the message included something like mimeTypes=io.javalin.http.staticfiles.MimeTypesConfig@46d567cb. It now is formatted as mimeTypes={csv=text/csv}.
@tipsy tipsy merged commit 28778c0 into javalin:master Jan 10, 2024
9 checks passed
@tipsy
Copy link
Member

tipsy commented Jan 10, 2024

Thanks @MariusVolkhart !

@MariusVolkhart MariusVolkhart deleted the mv/startupMessage branch January 11, 2024 00:33
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.

None yet

2 participants