Closed wwestgarth closed 1 year ago
Can we add a check on the LogLevel to verify it has a valid value ?
They are already validated slightly above in the diff:
if err := vgzap.EnsureIsSupportedLogLevel(c.LogLevel); err != nil {
return err
}
Had a fiddle to confirm and from the UI there is a dropdown so its not possible to choose a wrong value. If I edit the config file by hand to have either no value, or an unsupported value you get:
get:
Can we add a check on the LogLevel to verify it has a valid value ?
They are already validated slightly above in the diff:
if err := vgzap.EnsureIsSupportedLogLevel(c.LogLevel); err != nil { return err }
Had a fiddle to confirm and from the UI there is a dropdown so its not possible to choose a wrong value. If I edit the config file by hand to have either no value, or an unsupported value you get:
get:
Oh sure sorry my bad 🤦♂️
closes #504 closes #436