Skip to content

Commit dd98848

Browse files
author
Al Manning
committed
remove logging
1 parent ae0c449 commit dd98848

File tree

2 files changed

+4
-19
lines changed

2 files changed

+4
-19
lines changed

src/publish/confluence/confluence-helper.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,6 @@ export const updateImagePaths = (body: ContentBody): ContentBody => {
614614
return body;
615615
}
616616

617-
console.log("updateImagePaths call findAttachments");
618617
const attachments = findAttachments(bodyValue);
619618

620619
const withReplacedImages: string = bodyValue.replaceAll(
@@ -631,11 +630,6 @@ export const findAttachments = (
631630
publishFiles: string[] = [],
632631
filePathParam: string = ""
633632
): string[] => {
634-
console.log("findAttachments called");
635-
console.log("bodyValue", bodyValue);
636-
console.log("publishFiles", publishFiles);
637-
console.log("filePathParam", filePathParam);
638-
639633
const filePath = pathWithForwardSlashes(filePathParam);
640634

641635
const pathList = filePath.split("/");
@@ -650,15 +644,13 @@ export const findAttachments = (
650644
const assetPath = pathWithForwardSlashes(assetPathParam);
651645

652646
const toCheck = pathWithForwardSlashes(join(parentPath, assetFileName));
653-
console.log("toCheck", toCheck);
647+
654648
return assetPath === toCheck;
655649
});
656-
console.log("assetInPublishFiles", assetInPublishFiles);
650+
657651
return assetInPublishFiles ?? assetFileName;
658652
});
659653
}
660654

661-
console.log("uniqueResult", uniqueResult);
662-
663655
return uniqueResult ?? [];
664656
};

src/publish/confluence/confluence.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -351,11 +351,8 @@ async function publish(
351351
titleToUpdate: string = title,
352352
fileName: string = ""
353353
): Promise<Content> => {
354-
console.log("update content");
355-
356354
const previousPage = await client.getContent(id);
357355

358-
console.log("findAttachments update");
359356
const attachmentsToUpload: string[] = findAttachments(
360357
body.storage.value,
361358
publishFiles.files,
@@ -489,20 +486,16 @@ async function publish(
489486
createParent: ConfluenceParent = parent,
490487
fileNameParam: string = ""
491488
): Promise<Content> => {
492-
console.log("create content");
493-
494489
const createTitle = await uniquifyTitle(titleToCreate);
495490

496491
const fileName = pathWithForwardSlashes(fileNameParam);
497-
console.log("findAttachments");
492+
498493
const attachmentsToUpload: string[] = findAttachments(
499494
body.storage.value,
500495
publishFiles.files,
501496
fileName
502497
);
503498

504-
console.log("attachmentsToUpload", attachmentsToUpload);
505-
506499
trace("attachmentsToUpload", attachmentsToUpload, LogPrefix.ATTACHMENT);
507500
const updatedBody: ContentBody = updateImagePaths(body);
508501

@@ -644,7 +637,7 @@ async function publish(
644637
server,
645638
siteParent
646639
);
647-
console.log("changeList", changeList);
640+
648641
trace("changelist", changeList);
649642

650643
let pathsToId: Record<string, string> = {}; // build from existing site

0 commit comments

Comments
 (0)