express.io icon indicating copy to clipboard operation
express.io copied to clipboard

Unable to set loggin in options

Open rfrohock opened this issue 12 years ago • 3 comments

If you pass in options with log of true, the default option of log false always wins. Underscore extend copies from default options over the passed in options, tried using _defaults and that copies correctly.

rfrohock avatar Jun 20 '13 23:06 rfrohock

+1 I ran into this problem as well.

calmdev avatar Jul 21 '13 05:07 calmdev

app.io.set 'log', true   # Express.io defaults this to false.
app.io.set 'log level', if process.env.NODE_ENV is 'development' then 2 else 1

pharcosyle avatar Aug 20 '13 00:08 pharcosyle

Thanks!

imZack avatar Dec 29 '13 17:12 imZack