Closed taras-danyliuk closed 11 months ago
Thank you for pointing this out! If I get it correct then you aim to make the Meteor.isVerbose
calls to work when used in the other files, right? This is good but seems to cause the logs in the Meteor
file to not work anymore, because there is often if (isVerbose) {
using the local variable.
This is not your fault, but due to bad design (using a local variable and a property at the same time to determine if is verbose).
In order to make really all verbosity statements work I propose the following changes:
enableVerbose
should be flagged as /** @deprecated */
but kept in, to avoid breaking thingsif (isVerbose) {
should also use if (this.isVerbose) {
. Would you mind updating your pull request accordingly?
I don't think it is needed to mark enableVerbose
as deprecated. I didn't notice isVerbose
usage as local variable, let me check and correct it
Summary
Fix broken
Meteor.enableVerbose()
due to settingisVerbose
in wrong scope.Involved parts of the project
pretty much all parts :)
Targeted Meteor release version
doesn't affect communication with Meteor
Reproduction
Currently
Meteor.enableVerbose()
doesn't log extra info. With this fixMeteor.enableVerbose()
brings back allconsole.warn
logs