Skip to content

Commit 2610c2c

Browse files
committed
modules: add slf4j-nop where it is missing
Default startup of elasticsearch results in warnings: > [WARN ][stderr ] [es] SLF4J: No SLF4J providers were found. > [WARN ][stderr ] [es] SLF4J: Defaulting to no-operation (NOP) logger implementation > [WARN ][stderr ] [es] SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details. It seems like most modules and plugins install nop logger, but some don't. If one installs them everywhere, these warnings seem to go away.
1 parent 0437da5 commit 2610c2c

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

modules/repository-gcs/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ dependencies {
2929
runtimeOnly 'com.google.guava:guava:33.4.0-jre'
3030
runtimeOnly 'com.google.guava:failureaccess:1.0.2'
3131
runtimeOnly "org.slf4j:slf4j-api:${versions.slf4j}" // 2.0.16 in bom
32+
runtimeOnly "org.slf4j:slf4j-nop:${versions.slf4j}"
3233
runtimeOnly "commons-codec:commons-codec:${versions.commonscodec}" // 1.18.0 in bom
3334
implementation 'com.google.api:api-common:2.46.1'
3435
implementation 'com.google.api:gax:2.63.1'

modules/repository-s3/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ dependencies {
4545
runtimeOnly "org.apache.logging.log4j:log4j-1.2-api:${versions.log4j}"
4646
runtimeOnly "org.reactivestreams:reactive-streams:${versions.reactive_streams}"
4747
runtimeOnly "org.slf4j:slf4j-api:${versions.slf4j}"
48+
runtimeOnly "org.slf4j:slf4j-nop:${versions.slf4j}"
4849
runtimeOnly "software.amazon.awssdk:arns:${versions.awsv2sdk}"
4950
runtimeOnly "software.amazon.awssdk:aws-query-protocol:${versions.awsv2sdk}"
5051
runtimeOnly "software.amazon.awssdk:checksums-spi:${versions.awsv2sdk}"

x-pack/plugin/ent-search/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ dependencies {
2626
implementation "com.fasterxml.jackson.core:jackson-annotations:${versions.jackson}"
2727
implementation "com.fasterxml.jackson.core:jackson-databind:${versions.jackson}"
2828
implementation "org.slf4j:slf4j-api:${versions.slf4j}"
29+
runtimeOnly "org.slf4j:slf4j-nop:${versions.slf4j}"
2930
implementation "org.apache.logging.log4j:log4j-slf4j-impl:${versions.log4j}"
3031
implementation "com.networknt:json-schema-validator:${versions.networknt_json_schema_validator}"
3132

0 commit comments

Comments
 (0)