Skip to content

Commit

Permalink
minor logging refinement to make them easier to read
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM committed Sep 17, 2023
1 parent 9615fbd commit 150b2fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lambdas/GHHooks/GHHooksHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ struct GHHooksHandler: LambdaHandler {
throw Errors.headerNotFound(name: "x-gitHub-event", headers: request.headers)
}

logger.debug("Event name is '\(eventName)'")
logger.debug("Event name: '\(eventName)'")

/// To make sure we don't miss pings because of a decoding error or something
if eventName == .ping {
Expand All @@ -125,7 +125,7 @@ struct GHHooksHandler: LambdaHandler {

let event = try request.decodeWithISO8601(as: GHEvent.self)

logger.debug("Event identifier is '\(eventName).\(event.action ?? "<null>")'")
logger.debug("Event id: '\(eventName).\(event.action ?? "<null>")'")
logger.trace("Decoded event", metadata: [
"event": "\(event)"
])
Expand Down

0 comments on commit 150b2fd

Please sign in to comment.