Skip to content

Commit 99459e1

Browse files
committed
added logs for visibility
1 parent a249a6b commit 99459e1

File tree

2 files changed

+11623
-25890
lines changed

2 files changed

+11623
-25890
lines changed

adapters/integrations/gitlab-integration.js

+21-7
Original file line numberDiff line numberDiff line change
@@ -765,8 +765,29 @@ ${content}`;
765765
headSHA,
766766
});
767767

768+
logger.withInfo(
769+
`Successfully fetched file contents. File size: ${fileContents.length} bytes`,
770+
integrationName,
771+
CI_COMMIT_SHA,
772+
"getAssetName"
773+
);
774+
768775
if (fileContents) {
776+
logger.withInfo(
777+
"Starting regex matching",
778+
integrationName,
779+
CI_COMMIT_SHA,
780+
"getAssetName"
781+
);
769782
var matches = regExp.exec(fileContents);
783+
784+
logger.withInfo(
785+
"Successfully executed regex matching",
786+
integrationName,
787+
CI_COMMIT_SHA,
788+
"getAssetName"
789+
);
790+
770791
if (matches) {
771792
logger.withInfo(
772793
`Found a match: ${matches[1].trim()}`,
@@ -813,13 +834,6 @@ ${content}`;
813834
);
814835
const buff = Buffer.from(content, "base64");
815836

816-
logger.withInfo(
817-
"Successfully fetched file contents",
818-
integrationName,
819-
CI_COMMIT_SHA,
820-
"getFileContents"
821-
);
822-
823837
return buff.toString("utf8");
824838
} catch (error) {
825839
logger.withError(

0 commit comments

Comments
 (0)