]> git.basschouten.com Git - openhab-addons.git/commitdiff
[jdbc] Fix logging not working (#15722)
authorWouter Born <github@maindrain.net>
Sun, 8 Oct 2023 17:57:28 +0000 (19:57 +0200)
committerGitHub <noreply@github.com>
Sun, 8 Oct 2023 17:57:28 +0000 (19:57 +0200)
The dependency change in #15659 caused slf4j to be embedded into the bundle.

As a result the bundle no longer uses Pax Logging so it cannot find an SLF4J provider and logs the following when it is installed:

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.

Signed-off-by: Wouter Born <github@maindrain.net>
bundles/org.openhab.persistence.jdbc/pom.xml

index c88d4a7c83b540f0cc29f5d4a76fede20cba0b91..d3a6a3bae917bdf3d23df805614df269e9a53bd1 100644 (file)
@@ -39,6 +39,7 @@
       <groupId>org.slf4j</groupId>
       <artifactId>slf4j-api</artifactId>
       <version>${slf4j.version}</version>
+      <scope>provided</scope>
     </dependency>
     <dependency>
       <groupId>commons-dbutils</groupId>