Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #103 from jazzzz/fix-logger

Bind logger methods to the logger
  • Loading branch information...
commit 71fdc66fd00c2ff26eef6507e87229ce686474e7 2 parents b5bfa97 + cc3b0e2
Marcello Bastéa-Forte authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/server.js
2  lib/server.js
View
@@ -106,7 +106,7 @@ var Mongolian = module.exports = function(serversOrOptions) {
} else if (typeof arg === 'object') {
if (typeof arg.log !== 'undefined') {
for (var logLevel in this.log) {
- this.log[logLevel] = (arg.log && arg.log[logLevel]) || function() {}
+ this.log[logLevel] = (arg.log && arg.log[logLevel] && arg.log[logLevel].bind(arg.log)) || function() {}
}
}
if (arg.host) addServer(arg)
Please sign in to comment.
Something went wrong with that request. Please try again.