We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@Download This error seems to be a problem in the test case. The config of ulog contains {log: 'pass'} so the log level become NaN which is true 😁
{log: 'pass'}
NaN
The question now: Why are the configs log and test either 'ok' or 'pass'?
log
test
'ok'
'pass'
I added some console outputs in mods/config/index.js:
console
mods/config/index.js
update: function(ulog) { ... var changed = update(ulog.config, newCfg) console.log("changed: ", changed); ... }, ... after: function (logger) { console.log("after [logger.level]: ", logger.level); config.update(this); console.log("after [logger.level]: ", logger.level); }
Console output:
after [logger.level]: 3 changed: [ { name: 'test', old: 'ok', new: 'pass' }, { name: 'log', new: 'pass' }, { name: 'log_output', new: 'console;test=drain' } ] after [logger.level]: NaN
Originally posted by @Messj1 in #58 (comment)
The text was updated successfully, but these errors were encountered:
My idea was to test mods completely independent from ulog itself. But I have not been very consistent about this.
Sorry, something went wrong.
No branches or pull requests
@Download This error seems to be a problem in the test case. The config of ulog contains
{log: 'pass'}
so the log level becomeNaN
which is true 😁The question now: Why are the configs
log
andtest
either'ok'
or'pass'
?I added some
console
outputs inmods/config/index.js
:Console output:
Originally posted by @Messj1 in #58 (comment)
The text was updated successfully, but these errors were encountered: