Skip to content
This repository has been archived by the owner on Jul 29, 2021. It is now read-only.

Commit

Permalink
Log reason for failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mthmulders committed Aug 5, 2016
1 parent 0bbadbf commit 5659e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/scala/hyperion/DailyHistoryActor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5659e96

Please sign in to comment.