Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Lvl is LvlCrit #157

Open
kevinburke1 opened this issue Jan 9, 2020 · 1 comment
Open

Default Lvl is LvlCrit #157

kevinburke1 opened this issue Jan 9, 2020 · 1 comment

Comments

@kevinburke1
Copy link

If I write var x log15.Lvl there's not a good way to distinguish between unset and Crit, since Crit is 0.

The usual way to handle this with protobufs is to set e.g. LvlUnknown as the first iota value. Unfortunately that's probably a breaking change now.

@kevinburke1
Copy link
Author

I guess LvlFromString exists for this use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant