Should this be:

`logLevel: (utils.debugMode ? 'warn' : 'error')`

I don't think there is a `none` `logLevel`.