Skip to content

Commit 00515d1

Browse files
committed
Print exception if there is an unknown error connecting to Elasticsearch.
1 parent 9185f52 commit 00515d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/services/elasticsearch/ElasticsearchSearchService.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ class ElasticsearchSearchService @Inject() (
110110
client = None
111111
false
112112
}
113-
case _: Throwable => {
114-
Logger.error("Unknown exception connecting to Elasticsearch")
113+
case e: Throwable => {
114+
Logger.error("Unknown exception connecting to Elasticsearch", e)
115115
client.map(_.close())
116116
client = None
117117
false

0 commit comments

Comments
 (0)