Skip to content
This repository has been archived by the owner on Sep 9, 2018. It is now read-only.

TypeError: logger.warning is not a function #28

Open
rajbht opened this issue Nov 8, 2017 · 0 comments
Open

TypeError: logger.warning is not a function #28

rajbht opened this issue Nov 8, 2017 · 0 comments

Comments

@rajbht
Copy link

rajbht commented Nov 8, 2017

Getting the following exception when I try to GET /db-

Using auth: {} in config for my mongodb connection, and it looks like auth.js has logger.warning instead of logger.warn. Even having config.logger = "error" in config.json didn't help.

TypeError:` logger.warning is not a function
    at Layer.handle (/usr/local/lib/node_modules/mongodb-rest/lib/auth.js:38:20)
    at trim_prefix (/usr/local/lib/node_modules/mongodb-rest/node_modules/express/lib/router/index.js:254:17)
    at /usr/local/lib/node_modules/mongodb-rest/node_modules/express/lib/router/index.js:216:9
    at Function.proto.process_params (/usr/local/lib/node_modules/mongodb-rest/node_modules/express/lib/router/index.js:286:12)
    at next (/usr/local/lib/node_modules/mongodb-rest/node_modules/express/lib/router/index.js:207:19)
    at next (/usr/local/lib/node_modules/mongodb-rest/node_modules/express/lib/router/index.js:182:38)
    at Layer.handle (/usr/local/lib/node_modules/mongodb-rest/lib/accesscontrol.js:36:11)
    at trim_prefix (/usr/local/lib/node_modules/mongodb-rest/node_modules/express/lib/router/index.js:254:17)
    at /usr/local/lib/node_modules/mongodb-rest/node_modules/express/lib/router/index.js:216:9
    at Function.proto.process_params (/usr/local/lib/node_modules/mongodb-rest/node_modules/express/lib/router/index.js:286:12)

I am not sure if anyone is resolving these issues, but just wanted to post it, incase someone else saw this similar issue.

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

1 participant