From 8199b8269e552778552fd4d6568ddefdaf95fd1d Mon Sep 17 00:00:00 2001 From: John Kjell Date: Sat, 13 Apr 2024 00:01:43 -0500 Subject: [PATCH] Log gitoid search Signed-off-by: John Kjell --- dist/index.js | 3 +++ index.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/dist/index.js b/dist/index.js index 4ddd018..7e14423 100644 --- a/dist/index.js +++ b/dist/index.js @@ -30669,11 +30669,14 @@ function extractDesiredGitOID(output) { const lines = output.split("\n"); const desiredSubstring = "Stored in archivist as "; + console.log("Looking for Git OID in the output") for (const line of lines) { const startIndex = line.indexOf(desiredSubstring); if (startIndex !== -1) { + console.log("Checking line: ", line) const match = line.match(/[0-9a-fA-F]{64}/); if (match) { + console.log("Found Git OID: ", match[0]) return match[0]; } } diff --git a/index.js b/index.js index b31fa01..c2b75f9 100644 --- a/index.js +++ b/index.js @@ -192,11 +192,14 @@ function extractDesiredGitOID(output) { const lines = output.split("\n"); const desiredSubstring = "Stored in archivist as "; + console.log("Looking for Git OID in the output") for (const line of lines) { const startIndex = line.indexOf(desiredSubstring); if (startIndex !== -1) { + console.log("Checking line: ", line) const match = line.match(/[0-9a-fA-F]{64}/); if (match) { + console.log("Found Git OID: ", match[0]) return match[0]; } }