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

Remove ocpp-wamp/src/main/resources/logback.xml #68

Closed
mazu-rok opened this issue Apr 2, 2024 · 1 comment · Fixed by #73
Closed

Remove ocpp-wamp/src/main/resources/logback.xml #68

mazu-rok opened this issue Apr 2, 2024 · 1 comment · Fixed by #73

Comments

@mazu-rok
Copy link

mazu-rok commented Apr 2, 2024

Instead of this logs

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v3.2.4)

2024-04-02T19:35:23.091+03:00  INFO 30222 --- [ocpp] [           main] com.fntlct.ocpp.OcppApplication          : Starting OcppApplication using Java 21.0.2 with PID 30222 (/Users/mazurok/work/pikalka/ocpp/target/classes started by mazurok in /Users/mazurok/work/pikalka/ocpp)
2024-04-02T19:35:23.092+03:00  INFO 30222 --- [ocpp] [           main] com.fntlct.ocpp.OcppApplication          : No active profile set, falling back to 1 default profile: "default"
2024-04-02T19:35:23.330+03:00  INFO 30222 --- [ocpp] [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2024-04-02T19:35:23.353+03:00  INFO 30222 --- [ocpp] [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 19 ms. Found 1 JPA repository interface.
2024-04-02T19:35:23.545+03:00  INFO 30222 --- [ocpp] [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port 8082 (http)
2024-04-02T19:35:23.550+03:00  INFO 30222 --- [ocpp] [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2024-04-02T19:35:23.550+03:00  INFO 30222 --- [ocpp] [           main] o.apache.catalina.core.StandardEngine    : Starting Servlet engine: [Apache Tomcat/10.1.19]
2024-04-02T19:35:23.575+03:00  INFO 30222 --- [ocpp] [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2024-04-02T19:35:23.575+03:00  INFO 30222 --- [ocpp] [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 468 ms
2024-04-02T19:35:23.666+03:00  INFO 30222 --- [ocpp] [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2024-04-02T19:35:23.807+03:00  INFO 30222 --- [ocpp] [           main] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@615439f7
2024-04-02T19:35:23.807+03:00  INFO 30222 --- [ocpp] [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
2024-04-02T19:35:23.829+03:00  INFO 30222 --- [ocpp] [           main] org.flywaydb.core.FlywayExecutor         : Database: jdbc:mysql://localhost:3306/ocpp (MySQL 8.3)
2024-04-02T19:35:23.836+03:00  WARN 30222 --- [ocpp] [           main] o.f.c.internal.database.base.Database    : Flyway upgrade recommended: MySQL 8.3 is newer than this version of Flyway and support has not been tested. The latest supported version of MySQL is 8.1.
2024-04-02T19:35:23.852+03:00  INFO 30222 --- [ocpp] [           main] o.f.core.internal.command.DbValidate     : Successfully validated 1 migration (execution time 00:00.012s)

I got this:

 .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v3.2.4)

19:33:00.232 [main] WARN  o.f.c.i.database.base.Database - Flyway upgrade recommended: MySQL 8.3 is newer than this version of Flyway and support has not been tested. The latest supported version of MySQL is 8.1.
19:33:01.021 [main] INFO  c.i.o.w.s.i.UndertowOcppWampServer - starting ocpp wamp server 1.0.2 on port 8087 -- ocpp versions=[OCPP_1_6] - timeout=30000 ms
19:33:01.035 [main] WARN  o.s.b.a.o.j.JpaBaseConfiguration$JpaWebConfiguration - spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning

It can be fixed with adding own logback.xml file, but I don't want to add it

@lilgallon
Copy link
Member

Hello, thanks for posting an issue.

You are absolutely right, the lib should not provide any logging configuration. It will be removed

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.

2 participants