remove useless log
This commit is contained in:
@@ -4,7 +4,6 @@ import com.jayway.jsonpath.JsonPath
|
|||||||
import com.jayway.jsonpath.PathNotFoundException
|
import com.jayway.jsonpath.PathNotFoundException
|
||||||
import org.apache.http.util.EntityUtils
|
import org.apache.http.util.EntityUtils
|
||||||
import org.elasticsearch.client.Response
|
import org.elasticsearch.client.Response
|
||||||
import org.slf4j.LoggerFactory
|
|
||||||
|
|
||||||
fun Response.contentToString(): String {
|
fun Response.contentToString(): String {
|
||||||
return EntityUtils.toString(this.entity)
|
return EntityUtils.toString(this.entity)
|
||||||
@@ -22,8 +21,6 @@ fun String.getJsonField(jsonPath: String): Int? {
|
|||||||
return try {
|
return try {
|
||||||
JsonPath.read(this, jsonPath)
|
JsonPath.read(this, jsonPath)
|
||||||
} catch (e: PathNotFoundException) {
|
} catch (e: PathNotFoundException) {
|
||||||
LoggerFactory.getLogger("fr.dcproject.utils.getJsonField")
|
|
||||||
.warn("No value for Json path ${JsonPath.compile(jsonPath).path}")
|
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user