mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +01:00
ESlint key-spacing, no-trailing-spaces
This commit is contained in:
@@ -17,13 +17,13 @@ var opts = {
|
||||
/*
|
||||
* state used by Logger
|
||||
*/
|
||||
express : {
|
||||
app : {},
|
||||
set : 0,
|
||||
ofn : null,
|
||||
express: {
|
||||
app: {},
|
||||
set: 0,
|
||||
ofn: null,
|
||||
},
|
||||
streams : {
|
||||
log : { f : process.stdout },
|
||||
streams: {
|
||||
log: { f: process.stdout },
|
||||
},
|
||||
};
|
||||
|
||||
@@ -124,7 +124,7 @@ var opts = {
|
||||
/*
|
||||
* Always initialize "ofn" (original function) with the original logger function
|
||||
*/
|
||||
opts.express.ofn = morgan('combined', {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