You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Local evaluation: a failed background flag config poll is logged at debug only #84
When the local evaluation client's background poll for flag configs fails, the failure is logged at a level that reaches the application's logs under the default logLevel (LogLevel.Error), the same way CohortPoller already reports a failed cohort poll:
}catch(e){this.logger.debug('[Experiment] flag config update failed',e);}
With the default LogLevel.Error the line never appears, so a client that stopped receiving flag updates keeps serving its last configs silently. Only the initial poll in start() is logged at error. The only way to see the periodic failure today is logLevel: LogLevel.Debug, which also emits a line per poll and per evaluateV2 call.
This matters because for local evaluation the poll is the only path a dashboard change (including turning a flag off) reaches the process.
Possible Solution
Log the periodic poll failure at error, matching [Experiment] cohort poll failed in the same package. One-line change in packages/node/src/local/poller.ts; PR to follow.
Steps to Reproduce
Experiment.initializeLocal(key) with default config, await client.start().
Make https://flag.lab.amplitude.com unreachable (e.g. block it or drop the network).
Wait past flagConfigPollingIntervalMillis (30s).
Nothing is logged; evaluateV2 keeps returning results from the last successful poll.
Activity
fix: log failed background flag config poll at error