@@ -351,8 +351,11 @@ async function publish(
351351 titleToUpdate : string = title ,
352352 fileName : string = ""
353353 ) : Promise < Content > => {
354+ console . log ( "update content" ) ;
355+
354356 const previousPage = await client . getContent ( id ) ;
355357
358+ console . log ( "findAttachments update" ) ;
356359 const attachmentsToUpload : string [ ] = findAttachments (
357360 body . storage . value ,
358361 publishFiles . files ,
@@ -486,17 +489,19 @@ async function publish(
486489 createParent : ConfluenceParent = parent ,
487490 fileNameParam : string = ""
488491 ) : Promise < Content > => {
492+ console . log ( "create content" ) ;
493+
489494 const createTitle = await uniquifyTitle ( titleToCreate ) ;
490495
491496 const fileName = pathWithForwardSlashes ( fileNameParam ) ;
492-
497+ console . log ( "findAttachments" ) ;
493498 const attachmentsToUpload : string [ ] = findAttachments (
494499 body . storage . value ,
495500 publishFiles . files ,
496501 fileName
497502 ) ;
498503
499- console . log ( ' attachmentsToUpload' , attachmentsToUpload ) ;
504+ console . log ( " attachmentsToUpload" , attachmentsToUpload ) ;
500505
501506 trace ( "attachmentsToUpload" , attachmentsToUpload , LogPrefix . ATTACHMENT ) ;
502507 const updatedBody : ContentBody = updateImagePaths ( body ) ;
@@ -639,7 +644,7 @@ async function publish(
639644 server ,
640645 siteParent
641646 ) ;
642-
647+ console . log ( "changeList" , changeList ) ;
643648 trace ( "changelist" , changeList ) ;
644649
645650 let pathsToId : Record < string , string > = { } ; // build from existing site
0 commit comments