mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-03 04:50:52 +08:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user