Commit 3e11cc2
authored
fix(seeder): surface FRED 0-series failure in health + logs (koala73#2448)
* fix(seeder): surface FRED 0-series failure in health + logs
- Log actual rejection reason when a FRED series fetch fails (was silent)
- Warn explicitly when all 22 FRED series fail (0/22 case)
- Fix truthiness guard: empty {} return from fetchFredSeries() is truthy,
causing the 'all fetches failed' guard to never fire when FRED is down
but other data (EIA, Macro) succeeds — FRED panels silently go stale
Without this fix: FRED keys retain old Redis data until 26h TTL expires,
health shows STALE_SEED (warning) not DEGRADED, and the actual error
reason is never logged.
* fix(seeder): use frHasData in FRED write block for consistency1 parent dd5f4b2 commit 3e11cc2
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
196 | 198 | | |
197 | 199 | | |
198 | 200 | | |
| |||
542 | 544 | | |
543 | 545 | | |
544 | 546 | | |
545 | | - | |
| 547 | + | |
| 548 | + | |
546 | 549 | | |
547 | 550 | | |
548 | 551 | | |
549 | 552 | | |
550 | | - | |
| 553 | + | |
551 | 554 | | |
552 | 555 | | |
553 | 556 | | |
| |||
0 commit comments