chore(logging): add debug logs for executor Refresh methods

- Introduced `logrus` for structured debugging across all executors.
- Added debug log messages in `Refresh` methods for better traceability.
- Updated `Manager` to log additional details during refresh checks.
This commit is contained in:
Luis Pater
2025-09-22 20:03:31 +08:00
parent 4008be19f4
commit 837ae1b1b3
8 changed files with 15 additions and 0 deletions

View File

@@ -581,9 +581,11 @@ func (m *Manager) StopAutoRefresh() {
}
func (m *Manager) checkRefreshes(ctx context.Context) {
log.Debugf("checking refreshes")
now := time.Now()
snapshot := m.snapshotAuths()
for _, a := range snapshot {
log.Debugf("checking refresh for %s, %s", a.Provider, a.ID)
if !m.shouldRefresh(a, now) {
continue
}