[
https://issues.apache.org/jira/browse/CASSSIDECAR-336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18015440#comment-18015440
]
Bernardo Botella Corbi commented on CASSSIDECAR-336:
----------------------------------------------------
Here is what I think happened:
The issue was introduced by commit edb9c2e4 which added OpenAPI support. Here's
what happened:
Before the commit:
- Project used SLF4J 1.7.36 with Logback 1.2.3 (compatible)
- All dependencies used SLF4J 1.7.x versions
After the commit:
- Added io.swagger.core.v3:swagger-core:2.2.21 dependency
- Swagger Core 2.2.21 brings SLF4J 2.0.9 as transitive dependency
- Gradle resolved ALL SLF4J versions to 2.0.9 (newest wins)
- Logback 1.2.3 remains, but it's incompatible with SLF4J 2.0.x
The incompatibility:
- SLF4J 2.0+ introduced breaking changes including new ServiceLoader-based
provider mechanism
- Logback 1.2.3 uses the old StaticLoggerBinder approach (SLF4J 1.7.x)
- Result: "No SLF4J providers were found" because Logback 1.2.3 can't
register with SLF4J 2.0.9
I will post a fix today.
> Logging regression in Sidecar 0.2.0 test artifact.
> ---------------------------------------------------
>
> Key: CASSSIDECAR-336
> URL: https://issues.apache.org/jira/browse/CASSSIDECAR-336
> Project: Sidecar for Apache Cassandra
> Issue Type: Bug
> Components: Observability
> Reporter: Isaac Reath
> Priority: Major
>
> Posted on the 0.2.0 VOTE thread. It appears that in Sidecar 0.2.0 we no
> longer include a SLF4J provider in the build:
> apache-cassandra-sidecar-0.2.0 ./bin/cassandra-sidecar
> SLF4J: No SLF4J providers were found.
> SLF4J: Defaulting to no-operation (NOP) logger implementation
> SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
> SLF4J: Class path contains SLF4J bindings targeting slf4j-api versions 1.7.x
> or earlier.
> SLF4J: Ignoring binding found at
> [jar:file:/Users/ireath/sidecar-0.2.0/apache-cassandra-sidecar-0.2.0/lib/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See https://www.slf4j.org/codes.html#ignoredBindings for an
> explanation.
> This causes no logs to be emitted to stdout and no log files to be created in
> ${SIDECAR_HOME}/logs.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]