Skip to content

Commit

Permalink
Log unrecognised errors
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed May 28, 2024
1 parent 8c79b7c commit 76c6447
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Hummingbird/Application.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ extension ApplicationProtocol {
response = httpError.response(allocator: channel.allocator)
default:
// this error has not been recognised
context.logger.debug("Error: \(error)")
response = Response(
status: .internalServerError,
body: .init()
Expand Down

0 comments on commit 76c6447

Please sign in to comment.