warn when invalid numeric INI values silently fall back to defaults #19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Numeric config fields like MAX_VIDEO_HEIGHT, CHANNEL_CACHE_EXPIRES_HOURS, CURL_TIMEOUT, and RESCAN_TIMEOUT silently use defaults when parsing fails (e.g.
MAX_VIDEO_HEIGHT=720p). No warning is logged, so users have no idea their setting was ignored.Fix: log a
[WARN]when a numeric parse fails and the default is used.