From 1ec1c59c8cce23a5183d9dbdb6e1aaeb75f3cd4c Mon Sep 17 00:00:00 2001 From: Fabrice Lecomte Date: Thu, 8 Apr 2021 02:36:20 +0200 Subject: [PATCH] remove useless log --- src/main/kotlin/fr/dcproject/common/utils/Elastic.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/kotlin/fr/dcproject/common/utils/Elastic.kt b/src/main/kotlin/fr/dcproject/common/utils/Elastic.kt index b5f98b7..ed71814 100644 --- a/src/main/kotlin/fr/dcproject/common/utils/Elastic.kt +++ b/src/main/kotlin/fr/dcproject/common/utils/Elastic.kt @@ -4,7 +4,6 @@ import com.jayway.jsonpath.JsonPath import com.jayway.jsonpath.PathNotFoundException import org.apache.http.util.EntityUtils import org.elasticsearch.client.Response -import org.slf4j.LoggerFactory fun Response.contentToString(): String { return EntityUtils.toString(this.entity) @@ -22,8 +21,6 @@ fun String.getJsonField(jsonPath: String): Int? { return try { JsonPath.read(this, jsonPath) } catch (e: PathNotFoundException) { - LoggerFactory.getLogger("fr.dcproject.utils.getJsonField") - .warn("No value for Json path ${JsonPath.compile(jsonPath).path}") null } }