Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[server] Log additional details on replication failure

Neeraj Gupta0fc17e9453e5
diff --git a/server/pkg/controller/filedata/replicate.go b/server/pkg/controller/filedata/replicate.go
index fa34aa2e9b..708a654b4f 100644
--- a/server/pkg/controller/filedata/replicate.go
+++ b/server/pkg/controller/filedata/replicate.go
@@ -69,7 +69,12 @@ func (c *Controller) tryReplicate() error {
}
err = c.replicateRowData(ctx, *row)
if err != nil {
- log.Errorf("Could not delete file data: %s", err)
+ log.WithFields(log.Fields{
+ "file_id": row.FileID,
+ "type": row.Type,
+ "size": row.Size,
+ "userID": row.UserID,
+ }).Errorf("Could not delete file data: %s", err)
return err
} else {
// If the replication was completed without any errors, we can reset the lock time