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
Tag journal lines with host=, downgrade feeder_unclaimed to info (#97)
* feat(journal): tag log lines with host=, downgrade feeder_unclaimed to info
Adds a host= field (host[:port], scheme/userinfo/path/query stripped) at the end of every structured line emitted by airplanes-diagnostics and apl-feed-config-sync so operators can tell at a glance which backend a request hit. Downgrades the per-tick feeder_unclaimed 403 to level=info with status=unclaimed — that's the expected pre-claim state, not a warning.
* fix(common): harden _set_website_host against path-@ and log injection
Strip path/query/fragment before userinfo so a URL with an @ inside the path (https://airplanes.live/api/user@example) doesn't get mis-tagged as host=example. Validate the resulting host against a hostname charset and fall back to host=invalid on anything else — without that, a WEBSITE_URL set to 'https://good level=error' would smuggle extra fields into the structured log line.
0 commit comments