Skip to content

Commit

Permalink
#293 really hide stacktrace if connection to web hook fails
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Sep 8, 2017
1 parent d0fe5bf commit cfef53e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thehive-backend/app/services/WebHook.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ case class WebHook(name: String, ws: WSRequest)(implicit ec: ExecutionContext) {

def send(obj: JsObject): Unit = ws.post(obj).onComplete {
case Success(resp) if resp.status / 100 != 2 logger.error(s"WebHook returns status ${resp.status} ${resp.statusText}")
case Failure(ce: ConnectException) logger.error(s"Connection to WebHook $name error", ce)
case Failure(_: ConnectException) logger.error(s"Connection to WebHook $name error")
case Failure(error) logger.error("WebHook call error", error)
case _
}
Expand Down

0 comments on commit cfef53e

Please sign in to comment.