log::Level not deserializable in 0.10.0
I use log::Level in my config structs and this works great with config 0.9.0 and the serde feature enabled on the log crate (v 0.4.0).
In version 0.10.0 I get enum Level does not have variant constructor Error', src/config/mod.rs:7:37 for every variant of the Level enum I try.
ERROR will work.
This is a pretty serious issue for me too, there was a lot of breakage in 0.10 around case-sensitivity.
Do I understand correctly that this is only due to case sensitivity, but there is no real bug here? If that's the case, I'd close this issue.
I consinder this a bug tbh.
a) Why would it be case sensitive? b) Why make this change? Enum variants are CapsCamelCase and not SCREAM_CASE.
But ofc. It is your choice :)
Hm. I'm not sure that's a bug in config-rs, is it? :confused:
Define "bug". It is something in config-rs. https://docs.rs/log/0.4.14/src/log/lib.rs.html#513 log itself can parse it from any case.
Ok cool, I'll have a look!
I am closing this, after #188 was merged and I think this issue is resolved. Feel free to comment and I'll reopen if necessary.