swagger-api / swagger-api/swagger-codegen-generators

Versions 1.0.21+ prevent any log output from Spring Boot applications

Open
#956 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
299
Forks
439
PR merge metrics
No merged PRs in 30d

Description

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 https://github.com/swagger-api/swagger-codegen-generators/pull/703

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the difference between version 1.0.20 and 1.0.21 or newer in a Spring Boot project using mvn spring-boot:run. Then inspect swagger-codegen-generators pull request #703 and the changes around that version to identify why application logs disappear. Done means the expected Spring Boot startup output is restored for affected versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
backend, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.