util: use severity levels#5497
Conversation
|
@kulikov-a thanks, it was on my list somewhere to look into this. There are probably more spots to inspect at some point, but this is a good starting point. |
|
FWIW, I don’t think a „log_error“ function should be able to change priority of the message. Some log_error calls are warnings or otherwise but in the end touching those lines should be more clear than obfuscating them as log_error($msg, info);
… On 23. Jan 2022, at 11:45, Ad Schellevis ***@***.***> wrote:
Merged #5497 into master.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.
|
|
@AdSchellevis Thanks!
Can we discuss options then? Maybe it would be more correct to add an additional function (say |
|
I agree the naming is indeed a bit unfortunate, but I also don't want to add functions for every level (growing legacy base with limited value). @kulikov-a your suggestion to wrap the current functionality in |
|
@AdSchellevis Great! (actually, i even started with this approach, but then I decided that the less code the better) ) |
|
Yes, generic log message function is better is all I’m saying. |
Just stack the change on top, no need to revert the previous code |
* extend log_error to support levels * mark auth messages as notice
Hi!
I hope I didn't miss anything and now we can take advantage of using severity levels?
starting with GUI authentication logging )
Thanks!