ef1889767a25e4dbb624c7398d84aac49c4988d0
Before this fix, level strings with surrounding whitespace (e.g. " WARN ") were incorrectly parsed as Unknown instead of the matching variant. This primarily affected the JSON log path where serde preserves the raw field value including whitespace. Changes: - Add s.trim() before case-insensitive matching in FromStr impl - Store trimmed value in Unknown variant to avoid whitespace noise - Add unit tests for whitespace-padded known levels - Add unit tests for Unknown trimming semantics (empty, internal ws) - Add JSON regression test for level field with surrounding whitespace
Description
No description provided
Languages
Rust
100%