[server] Log additional details on replication failure
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user