-
Notifications
You must be signed in to change notification settings - Fork 11
Description
my app has been logging all statements regardless of severity, i did some digging and i think i figured out where the problem is occurring
my settings are declared like this:
"public": {
"observatorySettings": {
"logLevel": "INFO",
"printToConsole": false,
"logUser": true,
"logHttp": false,
"logDDP": false,
"prohibitAutoPublish": true
}
}
with just this and nothing else, it works just fine, but i have a special condition where i want to print logs to the console only on the server side, so i also have
//lib/environment.js
log = Observatory.getToolbox();
Meteor.startup(function () {
if(Meteor.isServer){
var observatorySettings = Meteor.settings.public.observatorySettings;
observatorySettings.printToConsole = true;
Observatory.setSettings(observatorySettings);
//also tried Observatory.setSettings({printToConsole: true}); to same effect
}
});
with this code in place, the log level appears to get reset to max (verbose logs are showing up in collection + console)
for now i'm just going without printing logs to console on server side, but sure seems like something is fishy with the setSettings call
also, the current docs say to use maxSeverity but that doesnt seem to work at all for me, logLevel does the trick though - maybe docs or code incorrect also?
meteor v0.6.6.1, observatory v0.3.21