From 5659e9665cfdafffea95695d68bb02bd69e0a412 Mon Sep 17 00:00:00 2001 From: Maarten Mulders Date: Fri, 5 Aug 2016 07:40:31 +0200 Subject: [PATCH] Log reason for failure --- app/src/main/scala/hyperion/DailyHistoryActor.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/scala/hyperion/DailyHistoryActor.scala b/app/src/main/scala/hyperion/DailyHistoryActor.scala index a5768a1..1a41638 100644 --- a/app/src/main/scala/hyperion/DailyHistoryActor.scala +++ b/app/src/main/scala/hyperion/DailyHistoryActor.scala @@ -103,7 +103,7 @@ class DailyHistoryActor(messageDistributor: ActorRef, log.info(" Electricity low : {}", reading.electricityLow) meterReadingDAO.recordMeterReading(reading) andThen { case Success(_) => log.info("Succeeded") - case Failure(reason) => log.error("Could not store meter reading in database", reason) + case Failure(reason) => log.error("Could not store meter reading in database: {}", reason) } stay()