Improve logging

Co-authored-by: kegsay <kegan@matrix.org>
This commit is contained in:
David Robertson 2023-08-23 11:46:20 +01:00 committed by GitHub
parent 7cbefdfbbe
commit 6b92d62116
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ func deleteFromTable(ctx context.Context, tx *sql.Tx, table string, roomIDs []st
if err != nil {
logger.Warn().Err(err).Msgf("Couldn't get number of rows deleted from %s", table)
} else {
logger.Info().Msgf("Deleted %d snapshots from %s", ra, table)
logger.Info().Msgf("Deleted %d rows from %s", ra, table)
}
return nil
}