[server] Log additional details on replication failure

This commit is contained in:
Neeraj Gupta
2024-11-04 18:00:59 +05:30
parent 0edfb461af
commit 0fc17e9453

View File

@@ -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