and lets us use INFO instead of LOGINFO in the config files?
anosh
I think if you just update the initial for loop to add to logger.levels then in set_loglevel, you do logger.loglevel = logger.levels[level.toUpperCase()];, it's be easier to understand
new_level seems too weird
idk how logger.LOG* is being used everywhere else besides logger.js though
ultimatt
yeah okay, that works too
anosh
yeah
it's just if anything is depending on the logger.LOG*, then those plugins might break
_smf_
ultimatt: I'd say the introduction of log.ini is a good as time as any to default the logging to LOGINFO or LOGNOTICE given that this will only affect new installations.
anosh
I'm going to go see how the syslog plugin works quickly
ultimatt: `logger.levels[`LOG${le}`] = le;` should be `logger.levels[`LOG${le}`] = logger.levels[le];`?
because `le` is just a key?
ultimatt
yep
not finished, I'm writing a test for it now.
so I'd have caught that in a few more minutes. :)
anosh
ah
lmao
it's cool
I'm just too eager
_smf_
No - to be fair he should have marked it WIP.
ultimatt
to be fair, the CI tests haven't finished running yet.
_smf_
And that is the problem with CI. It makes people lazy.
ultimatt
right, because lazy people write tests. I remember seeing that in Best Practices manuals everywhere
_smf_
No - it's because some people don't bother doing their own extensive tests and rely on the CI tests being right instead.
And I got caught in that trap myself.
anosh has quit
ultimatt
and people also like to assume that they can think of every use case and that they've tested them all and so they don't need tests. Maybe we need manual tests, CI tests, AND human code reviews and all are good things.
Yeah - I'm not disagreeing. I'm merely pointing out that you submitted a half-baked PR without marking it WIP and then used the CI tests not finishing as an excuse.
The TLS issue is a case in point - there was no review and the CI didn't pick up the problem.
ultimatt
the alleged problem
_smf_
Yeah - reported by a user - on here - that when they reverted from HEAD to 2.8.14 - it suddenly started working.
ultimatt
sure, and there's likely an issue.
but, it's HEAD, and the way we get reports like that is merging and letting the brave folks who run from HEAD do so
and the human code reviews of the TLS PR yesterday failed to catch what anosh bumped into today and what this PR fixes.
ahem, the logging PR
I misread the code and assumed DEBUG was a valid shorthand for LOGDEBUG, and conveniently, so did everyone else.
we're humans, it happens.
_smf_
Right - so next time, don't revert my code then. And I will extend you the same grace.
ultimatt
then don't break stuff, brag about not testing it, and then release it to NPM
_smf_
I didn't brag about testing it. I made sure the CI tests passed (which was my error) and I had no way of testing it as I don't use the plugins.
ultimatt
IOW, you didn't test it at all.
_smf_
And I'm happy to admit I was wrong. But don't go self-merging stuff and think I'm not going to pick you up on it when you introduce the same type of bug.
ultimatt
the plugins aren't hard to use. I've regularly enable plugins I don't use to test they work (example: DCC) after I whack at them.
_smf_
Right - because DCC really is the same class..
ultimatt
Hey Steve, how long was the TLS PR open before I self merged?