Skip to content

Commit

Permalink
learningpath-api: Stop logging generic exception in test
Browse files Browse the repository at this point in the history
  • Loading branch information
jnatten committed Sep 5, 2023
1 parent 5f938c7 commit 8ebdce3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ trait NdlaController {
.exists(x => x.`type` == "search_context_missing_exception" || x.reason == "Cannot parse scroll id") =>
BadRequest(body = InvalidSearchContext)
case t: Throwable =>
t.printStackTrace()
logger.error(t.getMessage)
logger.error(t.getMessage, t)
InternalServerError(body = Error(GENERIC, GENERIC_DESCRIPTION))
}

Expand Down

0 comments on commit 8ebdce3

Please sign in to comment.