Skip to content

Commit 5935cc4

Browse files
committed
Fix logging of error message when an event cannot be indexed (close #237)
1 parent 0a68feb commit 5935cc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticsearch/src/main/scala/com/snowplowanalytics/stream/loader/clients/ElasticsearchBulkSender.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ class ElasticsearchBulkSender(
210210
error: Option[String],
211211
record: EmitterJsonInput
212212
): Option[EmitterJsonInput] = {
213-
error.foreach(e => log.error("Failed to index record in Elasticsearch", e))
213+
error.foreach(e => log.error(s"Failed to index record in Elasticsearch: {}", e))
214214
error
215215
.flatMap { e =>
216216
if (

0 commit comments

Comments
 (0)