Skip to content

Commit 98cb61a

Browse files
committed
update log message
1 parent 3a09e3a commit 98cb61a

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

app/models/Backend.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,10 +1256,7 @@ class Backend @Inject() (implicit
12561256
): Future[Publications] = {
12571257
val table = getTableWithPrefixOrDefault(defaultOTSettings.clickhouse.literature.name)
12581258
val indexTable = getTableWithPrefixOrDefault(defaultOTSettings.clickhouse.literatureIndex.name)
1259-
logger.debug(s"querying literature ocurrences",
1260-
keyValue("table", table),
1261-
keyValue("ids", ids)
1262-
)
1259+
logger.debug(s"querying literature ocurrences", keyValue("table", table), keyValue("ids", ids))
12631260

12641261
val pag = Helpers.Cursor.to(cursor).flatMap(_.asOpt[Pagination]).getOrElse(Pagination.mkDefault)
12651262

app/models/ElasticRetriever.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ class ElasticRetriever @Inject() (
211211
): Nothing =
212212
err.error.rootCause.foreach { rc =>
213213
logger.error(
214-
s"Elasticsearch error: query=${client.show(q)} type=${rc.`type`}, reason=${rc.reason}, " +
215-
s"index=${rc.index}, causedBy=${rc.causedBy}"
214+
s"elasticsearch error type=${rc.`type`} reason=${rc.reason} " +
215+
s"index=${rc.index} causedBy=${rc.causedBy} query=${client.show(q)}"
216216
)
217217
}
218218
throw new Exception(err.error.reason)
@@ -414,7 +414,7 @@ class ElasticRetriever @Inject() (
414414
case None => searchRequest
415415
}
416416

417-
logger.info(s"Elasticsearch query: ${client.show(sortedSearchRequest)}")
417+
logger.info(s"elasticsearch query: ${client.show(sortedSearchRequest)}")
418418
sortedSearchRequest
419419
}
420420

0 commit comments

Comments
 (0)