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

Versions 1.0.21+ prevent any log output from Spring Boot applications #956

Open
Artur- opened this issue Sep 10, 2021 · 0 comments · May be fixed by #957
Open

Versions 1.0.21+ prevent any log output from Spring Boot applications #956

Artur- opened this issue Sep 10, 2021 · 0 comments · May be fixed by #957

Comments

@Artur-
Copy link

Artur- commented Sep 10, 2021

If you include version 1.0.21 or newer of this in a Spring Boot project, no output is written to the console anymore.

Expected output from mvn spring-boot:run in a given project

[INFO] --- spring-boot-maven-plugin:2.5.4:run (default-cli) @ output-test ---
[INFO] Attaching agents: []
               _                  _           _               _   
  ___   _   _ | |_  _ __   _   _ | |_        | |_   ___  ___ | |_ 
 / _ \ | | | || __|| '_ \ | | | || __| _____ | __| / _ \/ __|| __|
| (_) || |_| || |_ | |_) || |_| || |_ |_____|| |_ |  __/\__ \| |_ 
 \___/  \__,_| \__|| .__/  \__,_| \__|        \__| \___||___/ \__|
                   |_|                                            

2021-09-10 14:40:46.629  INFO 57473 --- [  restartedMain] com.example.application.Application      : Starting Application using Java 16 on MacBook-Prime.local with PID 57473 (/.../output-test/target/classes started by ... in /.../output-test)
2021-09-10 14:40:46.632  INFO 57473 --- [  restartedMain] com.example.application.Application      : No active profile set, falling back to default profiles: default
2021-09-10 14:40:46.677  INFO 57473 --- [  restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2021-09-10 14:40:46.677  INFO 57473 --- [  restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
2021-09-10 14:40:47.533  INFO 57473 --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2021-09-10 14:40:47.542  INFO 57473 --- [  restartedMain] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2021-09-10 14:40:47.542  INFO 57473 --- [  restartedMain] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.52]
2021-09-10 14:40:47.637  INFO 57473 --- [  restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2021-09-10 14:40:47.637  INFO 57473 --- [  restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 959 ms
2021-09-10 14:40:47.768  INFO 57473 --- [  restartedMain] c.v.f.s.VaadinServletContextInitializer  : Search for VaadinAppShell took 23 ms
2021-09-10 14:40:47.772  INFO 57473 --- [  restartedMain] c.v.f.s.s.VaadinAppShellInitializer      : Using com.example.application.Application class for configuring `index.html` response
2021-09-10 14:40:50.238  INFO 57473 --- [  restartedMain] c.v.f.s.VaadinServletContextInitializer  : Search for subclasses and classes with annotations took 2403 ms
2021-09-10 14:40:50.241  INFO 57473 --- [  restartedMain] c.v.b.d.startup.DevModeInitializer       : Starting dev-mode updaters in /.../output-test folder.

Output when adding 1.0.21

[INFO] --- spring-boot-maven-plugin:2.5.4:run (default-cli) @ output-test ---
[INFO] Attaching agents: []
               _                  _           _               _   
  ___   _   _ | |_  _ __   _   _ | |_        | |_   ___  ___ | |_ 
 / _ \ | | | || __|| '_ \ | | | || __| _____ | __| / _ \/ __|| __|
| (_) || |_| || |_ | |_) || |_| || |_ |_____|| |_ |  __/\__ \| |_ 
 \___/  \__,_| \__|| .__/  \__,_| \__|        \__| \___||___/ \__|
                   |_|                                            

Most likely caused by #703

Artur- added a commit to Artur-/swagger-codegen-generators that referenced this issue Sep 10, 2021
Libraries should not contain logging configuration. They interfere with application logging configurations.

This reverts commit 6a0629a.

Fixes swagger-api#956
@Artur- Artur- linked a pull request Sep 10, 2021 that will close this issue
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 a pull request may close this issue.

1 participant