diff --git a/index.js b/index.js index 7b6dada..01950fe 100644 --- a/index.js +++ b/index.js @@ -127,7 +127,7 @@ function morgan (format, options) { } debug('log request') - stream.write(line + '\n') + stream.write(typeof line === 'string' ? (line + '\n') : line) }; if (immediate) {