From 4c39721c16ae36f9c45772527ab1a55880951c16 Mon Sep 17 00:00:00 2001 From: Siddharth Banga <91724657+VOSID8@users.noreply.github.com> Date: Tue, 2 Apr 2024 03:40:29 +0530 Subject: [PATCH] Added few error loggers --- .gitignore | 1 + project/Elasticsearch.scala | 2 +- project/Postgres.scala | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 0d8ac05d2..59e31491c 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ scaladex.log .metals/ **/project/metals.sbt .bsp/ +.vscode diff --git a/project/Elasticsearch.scala b/project/Elasticsearch.scala index 69efb9db1..4c9fa775a 100644 --- a/project/Elasticsearch.scala +++ b/project/Elasticsearch.scala @@ -81,7 +81,7 @@ object Elasticsearch extends AutoPlugin { container.getFirstMappedPort() } catch { case e: Throwable => - logger.error("Error starting Elasticsearch container:", e) + logger.error(s"Error starting Elasticsearch container: {$e}") container.stop() throw e } diff --git a/project/Postgres.scala b/project/Postgres.scala index 76939ff98..0ffbc8d0e 100644 --- a/project/Postgres.scala +++ b/project/Postgres.scala @@ -92,7 +92,7 @@ object Postgres extends AutoPlugin { container.getFirstMappedPort() } catch { case e: Throwable => - logger.error("Error starting PostgreSQL container:", e) + logger.error(s"Error starting PostgreSQL container: {$e}") container.close() throw e }