Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

TypeError: Cannot set property 'level' of undefined #60

Closed
robbiet480 opened this issue Sep 25, 2013 · 5 comments
Closed

TypeError: Cannot set property 'level' of undefined #60

robbiet480 opened this issue Sep 25, 2013 · 5 comments

Comments

@robbiet480
Copy link

$ mosca -c mosca.conf -p 1883 --non-secure -v | bunyan

/usr/local/share/npm/lib/node_modules/mosca/lib/cli.js:96
      opts.logger.level = 30;
                        ^
TypeError: Cannot set property 'level' of undefined
    at /usr/local/share/npm/lib/node_modules/mosca/lib/cli.js:96:25
    at cli (/usr/local/share/npm/lib/node_modules/mosca/lib/cli.js:232:12)
    at Object.<anonymous> (/usr/local/share/npm/lib/node_modules/mosca/bin/mosca:3:22)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:901:3
$
node -v: v0.10.9
mosca -V: 0.12.0

Latest versions. Seems to have been caused by recent changes to cli.js? I see work being done around there. This error only occurs when throwing -c mosca.conf

Thanks.

@mcollina
Copy link
Collaborator

Seems a duplicate of #59. Are you using redis too?

I'll work on it tomorrow.

@robbiet480
Copy link
Author

Nope, Mongo. Nothing special, everything running on localhost.

@mcollina
Copy link
Collaborator

This is a duplicate of #58.

@robbiet480
Copy link
Author

Argh sorry about that @mcollina! Should've investigated a bit more.

@mcollina
Copy link
Collaborator

Releases ad 0.12.1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants