mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-06 07:40:43 +01:00
fixing deprecation notice for morgan
This commit is contained in:
@@ -125,7 +125,7 @@ var opts = {
|
||||
/*
|
||||
* Always initialize "ofn" (original function) with the original logger function
|
||||
*/
|
||||
opts.express.ofn = morgan({stream : opts.streams.log.f});
|
||||
opts.express.ofn = morgan('combined', {stream : opts.streams.log.f});
|
||||
};
|
||||
|
||||
Logger.expressLogger = function(req,res,next) {
|
||||
|
||||
Reference in New Issue
Block a user