Skip to content

Commit 59e4348

Browse files
fix(weather): reduce log noise in EnvCanada during hour transitions
- Change 'Could not find city page URL' from warn to debug level - This happens normally during hour transitions when old responses arrive - After reinitialization, old fetcher may still send cached responses - Add explanatory comment about stale responses from previous hour
1 parent 9491462 commit 59e4348

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

defaultmodules/weather/providers/envcanada.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ class EnvCanadaProvider {
8484
const cityPageURL = this.#extractCityPageURL(html);
8585

8686
if (!cityPageURL) {
87-
Log.warn("[envcanada] Could not find city page URL");
88-
return;
87+
// This can happen during hour transitions when old responses arrive
88+
Log.debug("[envcanada] Could not find city page URL (may be stale response from previous hour)");
8989
}
9090

9191
if (cityPageURL === this.lastCityPageURL) {

0 commit comments

Comments
 (0)