diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-19 13:58:13 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-19 13:58:13 +0100 |
commit | 23e27dd53599be65b2dc2968448ce155a00a96c9 (patch) | |
tree | cd7e5c88a345584a25c7ea03a81332b804d082d6 /server.ts | |
parent | c7a9f34f7229529ea726de13867f87c0a8dd3007 (diff) | |
download | PeerTube-23e27dd53599be65b2dc2968448ce155a00a96c9.tar.gz PeerTube-23e27dd53599be65b2dc2968448ce155a00a96c9.tar.zst PeerTube-23e27dd53599be65b2dc2968448ce155a00a96c9.zip |
Add ability to configure log level
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -82,7 +82,7 @@ if (isTestInstance()) { | |||
82 | 82 | ||
83 | // For the logger | 83 | // For the logger |
84 | app.use(morgan('combined', { | 84 | app.use(morgan('combined', { |
85 | stream: { write: logger.info } | 85 | stream: { write: logger.info.bind(logger) } |
86 | })) | 86 | })) |
87 | // For body requests | 87 | // For body requests |
88 | app.use(bodyParser.json({ | 88 | app.use(bodyParser.json({ |