mirror of
https://github.com/coder/coder.git
synced 2025-07-08 11:39:50 +00:00
Merge branch 'main' of github.com:/coder/coder into dk/prebuilds
This commit is contained in:
@ -152,7 +152,7 @@ func (k *rotator) rotateKeys(ctx context.Context) error {
|
||||
}
|
||||
}
|
||||
if validKeys == 0 {
|
||||
k.logger.Info(ctx, "no valid keys detected, inserting new key",
|
||||
k.logger.Debug(ctx, "no valid keys detected, inserting new key",
|
||||
slog.F("feature", feature),
|
||||
)
|
||||
_, err := k.insertNewKey(ctx, tx, feature, now)
|
||||
@ -194,7 +194,7 @@ func (k *rotator) insertNewKey(ctx context.Context, tx database.Store, feature d
|
||||
return database.CryptoKey{}, xerrors.Errorf("inserting new key: %w", err)
|
||||
}
|
||||
|
||||
k.logger.Info(ctx, "inserted new key for feature", slog.F("feature", feature))
|
||||
k.logger.Debug(ctx, "inserted new key for feature", slog.F("feature", feature))
|
||||
return newKey, nil
|
||||
}
|
||||
|
||||
|
@ -63,7 +63,7 @@ func New(ctx context.Context, logger slog.Logger, db database.Store, clk quartz.
|
||||
return xerrors.Errorf("failed to delete old notification messages: %w", err)
|
||||
}
|
||||
|
||||
logger.Info(ctx, "purged old database entries", slog.F("duration", clk.Since(start)))
|
||||
logger.Debug(ctx, "purged old database entries", slog.F("duration", clk.Since(start)))
|
||||
|
||||
return nil
|
||||
}, database.DefaultTXOptions().WithID("db_purge")); err != nil {
|
||||
|
Reference in New Issue
Block a user