-
Notifications
You must be signed in to change notification settings - Fork 40.9k
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
Make WebServers' started log messages more consistent #36149
Comments
For Servlet WebServers I think we should always log something, even with the default empty context path. It would also be good to log For reactive WebServers I think it probably makes sense not to log anything at all as there isn't really a context path in this case. Technically, you could configure one for some of the servers, for example with a |
We're going with "Tomcat started on ports 8080 (http) with context path '/'" for servlets and "Tomcat started on ports 8080 (http)" for reactive. |
@wilkinsona : if you wouldn't mind, I would try to have a go at this PR. |
Hi @wilkinsona, @emileplas , I am trying to start contributing to spring boot. I thought this could be a great issue to start with as it seems easy. If @emileplas hasn't done it yet, I think I can start. First time contributing to an open source project, so I may need a little help. From #36103 , I have identified that the change is needed in the following files:
I have also identified the code that needs to be changed. At least the "end" code, I guess I will have to reverse engineer things to see where the issue comes form. However, I would like to know which branch I should be working on (base my PR branch on), because now I'm looking at the |
Hi @vicaba, thanks for offering to pick this one up if @emileplas doesn't mind (let's give him a few days to respond).
We'd consider this one an enhancement so it only needs to be applied to the |
@vicaba go ahead. |
I have some news on this issue.
|
Hi @vicaba, thanks for the update.
We can leave Netty for now. One of the team can always pick that up when we look at merging the PR.
Yes please. We probably won't get around to reviewing it until the new year as we've not yet branched for 3.3 development. |
FWIW, we do have tests for Netty, including smoke tests. |
Hi @philwebb, @wilkinsona, thank you for the info, I will take a look at the Netty situation this weekend and open the PR. |
While we're doing this, we can also improve the logging of the protocol ( |
Working on #36103 showed that there are some inconsistencies in how we log the Servlet WebServer's context path:
'/'
by default''
by defaultThere are also some similar inconsistencies on the reactive side where there is no (configurable) context path:
'/'
''
We should try to make things as consistent as possible, removing as many of the optional regex groups as possible from the tests added in #36103.
The text was updated successfully, but these errors were encountered: