Skip to content

Commit 6d425a1

Browse files
committed
Log errors
1 parent 1317589 commit 6d425a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/HummingbirdCore/HTTPServerHandler.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public final class HBHTTPServerHandler: ChannelInboundHandler {
7373
}
7474

7575
func getErrorResponse(context: ChannelHandlerContext, error: Error, version: HTTPVersion) -> HBHTTPResponse {
76+
self.responder.logger?.error("\(error)")
7677
switch error {
7778
case let httpError as HBHTTPError:
7879
return httpError.response(version: version, allocator: context.channel.allocator)

0 commit comments

Comments
 (0)