From 092895818430e67a2a341c8046c3b1e1f2c8b7d2 Mon Sep 17 00:00:00 2001 From: Carolina Calderon Date: Mon, 16 Sep 2024 10:47:32 -0600 Subject: [PATCH] chore: change log level for log retention policies (#9935) --- master/internal/logretention/logretention.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/master/internal/logretention/logretention.go b/master/internal/logretention/logretention.go index 0334541ec0f..f73b099e641 100644 --- a/master/internal/logretention/logretention.go +++ b/master/internal/logretention/logretention.go @@ -92,7 +92,7 @@ func DeleteExpiredTaskLogs(ctx context.Context, days *int16) (int64, error) { if days != nil { defaultLogRetentionDays = *days } - log.WithField("default-retention-days", defaultLogRetentionDays).Trace("deleting expired task logs") + log.WithField("default-retention-days", defaultLogRetentionDays).Info("deleting expired task logs") r, err := db.Bun().NewRaw(fmt.Sprintf(` WITH log_retention_tasks AS ( SELECT COALESCE(r.log_retention_days, %d) as log_retention_days, t.task_id, t.end_time @@ -112,6 +112,6 @@ func DeleteExpiredTaskLogs(ctx context.Context, days *int16) (int64, error) { return 0, errors.Wrap(err, "error deleting expired task logs") } rows, err := r.RowsAffected() - log.WithFields(logrus.Fields{"rows": rows, "err": err}).Trace("deleted expired task logs") + log.WithFields(logrus.Fields{"rows": rows, "err": err}).Info("deleted expired task logs") return rows, err }