File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -268,8 +268,14 @@ def push_project_finalize(job):
268268 resp = job .mc .post ("/v1/project/push/finish/%s" % job .transaction_id )
269269 job .server_resp = json .load (resp )
270270 except ClientError as err :
271+ # Log additional metadata on server error 502 or 504
272+ if hasattr (err , "http_error" ) and err .http_error in (502 , 504 ):
273+ job .mp .log .error (
274+ f"Push failed with HTTP error { err .http_error } . "
275+ f"Upload details: { len (job .upload_queue_items )} file chunks, total size { job .total_size } bytes."
276+ )
271277 # server returns various error messages with filename or something generic
272- # it would be better if it returned list of failed files (and reasons) whenever possible
278+ # it would be better if it returned list of failed files (and reasons) whenever possible
273279 job .mp .log .error ("--- push finish failed! " + str (err ))
274280
275281 # if push finish fails, the transaction is not killed, so we
You can’t perform that action at this time.
0 commit comments