From 29d59cfb60d930d1f712617c646bc237866faa2d Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Mon, 30 Dec 2024 06:12:55 +0900 Subject: [PATCH] chore: improved logs for events --- src/github/utils/config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/github/utils/config.ts b/src/github/utils/config.ts index 0e85595..7587ea4 100644 --- a/src/github/utils/config.ts +++ b/src/github/utils/config.ts @@ -150,11 +150,12 @@ async function download({ context, repository, owner }: { context: GitHubContext path: filePath, mediaType: { format: "raw" }, }); + console.log(`Configuration file found at ${owner}/${repository}/${filePath}`); return data as unknown as string; // this will be a string if media format is raw } catch (err) { // In case of a missing config, do not log is as an error if (err && typeof err === "object" && "status" in err && err.status === 404) { - console.log(`No configuration file was found at ${owner}/${repository}/${filePath}.`); + console.log(`No configuration file was found at ${owner}/${repository}/${filePath}`); } else { console.error(err); }