@@ -66,13 +66,28 @@ export class FinalizeDeploymentV2Service extends BaseService {
6666 throw new ServiceValidationError ( "Worker deployment is not in DEPLOYING status" ) ;
6767 }
6868
69+ const deploymentDiagnostics = {
70+ id : deployment . id ,
71+ friendlyId : id ,
72+ status : deployment . status ,
73+ version : deployment . version ,
74+ imageReference : deployment . imageReference ,
75+ type : deployment . type ,
76+ } ;
77+ const finalizeOptions = {
78+ skipPromotion : body . skipPromotion ,
79+ imageDigest : body . imageDigest ,
80+ skipPushToRegistry : body . skipPushToRegistry ,
81+ } ;
82+
6983 const finalizeService = new FinalizeDeploymentService ( ) ;
7084
7185 // If remote builds are not enabled, skip image push and go straight to template + finalize
7286 if ( ! remoteBuildsEnabled ( ) || body . skipPushToRegistry ) {
7387 if ( body . skipPushToRegistry ) {
7488 logger . debug ( "Skipping push to registry during deployment finalization" , {
75- deployment,
89+ deployment : deploymentDiagnostics ,
90+ finalizeOptions,
7691 } ) ;
7792 }
7893
@@ -117,7 +132,10 @@ export class FinalizeDeploymentV2Service extends BaseService {
117132 throw new ServiceValidationError ( "Missing image reference" ) ;
118133 }
119134
120- logger . debug ( "Pushing image to registry" , { id, deployment, body } ) ;
135+ logger . debug ( "Pushing image to registry" , {
136+ deployment : deploymentDiagnostics ,
137+ finalizeOptions,
138+ } ) ;
121139
122140 const pushResult = await executePushToRegistry (
123141 {
@@ -142,9 +160,8 @@ export class FinalizeDeploymentV2Service extends BaseService {
142160 }
143161
144162 logger . debug ( "Image pushed to registry" , {
145- id,
146- deployment,
147- body,
163+ deployment : deploymentDiagnostics ,
164+ finalizeOptions,
148165 pushedImage : pushResult . image ,
149166 } ) ;
150167
0 commit comments