From 150b2fd3173a41285724fcaa77347a29b7df3906 Mon Sep 17 00:00:00 2001 From: MahdiBM Date: Sun, 17 Sep 2023 18:35:14 +0330 Subject: [PATCH] minor logging refinement to make them easier to read --- Lambdas/GHHooks/GHHooksHandler.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lambdas/GHHooks/GHHooksHandler.swift b/Lambdas/GHHooks/GHHooksHandler.swift index 192d6a8f..cf623212 100644 --- a/Lambdas/GHHooks/GHHooksHandler.swift +++ b/Lambdas/GHHooks/GHHooksHandler.swift @@ -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 { @@ -125,7 +125,7 @@ struct GHHooksHandler: LambdaHandler { let event = try request.decodeWithISO8601(as: GHEvent.self) - logger.debug("Event identifier is '\(eventName).\(event.action ?? "")'") + logger.debug("Event id: '\(eventName).\(event.action ?? "")'") logger.trace("Decoded event", metadata: [ "event": "\(event)" ])