@@ -106,7 +106,7 @@ func (fs *FileStore) WriteFile(allocID, conID string, fileData *FileInputData, i
106106 _ = os .Remove (tempFilePath )
107107 return nil , common .NewError ("file_size_mismatch" , "File size is greater than expected" )
108108 }
109- logging .Logger .Info ("temp_file_write: " , zap .String ("filePath" , fileData .Path ), zap .Int64 ("currentSize" , currentSize ), zap .Int64 ("initialSize" , initialSize ), zap .Int64 ("writtenSize" , writtenSize ), zap .Int64 ("offset" , fileData .UploadOffset ), zap .Bool ( "ChunkUploaded " , fileRef . ChunkUploaded ))
109+ logging .Logger .Info ("temp_file_write: " , zap .String ("filePath" , fileData .Path ), zap .Int64 ("currentSize" , currentSize ), zap .Int64 ("initialSize" , initialSize ), zap .Int64 ("writtenSize" , writtenSize ), zap .Int64 ("offset" , fileData .UploadOffset ), zap .String ( "tempFilePath " , tempFilePath ))
110110 fileRef .Size = writtenSize
111111 fileRef .Name = fileData .Name
112112 fileRef .Path = fileData .Path
@@ -398,7 +398,7 @@ func (fs *FileStore) DeleteTempFile(allocID, conID string, fd *FileInputData) er
398398 return common .NewError ("invalid_allocation_id" , "Allocation id cannot be empty" )
399399 }
400400 fileObjectPath := fs .getTempPathForFile (allocID , fd .Name , encryption .Hash (fd .Path ), conID )
401-
401+ logging . Logger . Info ( "deleting_temp_file" , zap . String ( "fileObjectPath" , fileObjectPath ), zap . String ( "allocation_id" , allocID ), zap . String ( "connection_id" , conID ))
402402 finfo , err := os .Stat (fileObjectPath )
403403 if err != nil {
404404 if errors .Is (err , os .ErrNotExist ) {
0 commit comments