Skip to content

Commit

Permalink
Log failure on jenkins event
Browse files Browse the repository at this point in the history
  • Loading branch information
adriaanm committed Feb 15, 2018
1 parent c0d65f2 commit 00bface
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gui/app/controllers/Scabot.scala
Expand Up @@ -57,7 +57,9 @@ class Scabot @Inject() (val system: ActorSystem) extends Controller with GithubS
def jenkins() = PlayAction(BodyParsers.parse.json) { implicit request =>
handleWith(jenkinsEvent) match {
case Success(message) => Ok(message)
case Failure(ex) => InternalServerError(ex.getMessage)
case Failure(ex) =>
system.log.error(s"Couldn't handle Jenkins event ${request.body}.\n Fail: $ex")
InternalServerError(ex.getMessage)
}
}

Expand Down

0 comments on commit 00bface

Please sign in to comment.