debug icon indicating copy to clipboard operation
debug copied to clipboard

Wildcard in name doesn't auto enable on web

Open GioLogist opened this issue 7 years ago • 4 comments

More in #634

GioLogist avatar Nov 06 '18 17:11 GioLogist

Thanks for opening.

https://github.com/visionmedia/debug/pull/634#issuecomment-436343834

Normally I'd agree, but it just seems like bizarre behavior that's unexpected for people that aren't aware of it, as well as the fact that it would circumvent the DEBUG environment variable causing confusion to downstream consumers of a library.

Either way, it's a bug :D

Qix- avatar Nov 06 '18 18:11 Qix-

Thought it was a nice tough myself, IE: being able to use for logs. But yep, the nightmare of a dependency using it rather liberally would be a pain. Although, couldn't the same thing be said about logs in general?

GioLogist avatar Nov 06 '18 18:11 GioLogist

Yes and no. It depends on how they're handled. SLF4J handles this quite nicely - all logging facilities are handled by the end user.

Debug is similar, and it's assumed the the consumer (the user) controls the debugging entirely.

This is also why it's called debug and not log :wink:

Qix- avatar Nov 07 '18 00:11 Qix-

This is also why it's called debug and not log 😉

Hah, fair.

GioLogist avatar Nov 07 '18 17:11 GioLogist