File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,9 @@ const session = require('express-session');
9
9
const passport = require ( 'passport' ) ;
10
10
const { ensureLoggedIn} = require ( 'connect-ensure-login' ) ;
11
11
const bodyParser = require ( 'body-parser' ) ;
12
- const morgan = require ( 'morgan' ) ;
13
12
14
13
const { authRouter} = require ( './login' ) ;
15
14
const config = require ( './config' ) ;
16
- console . log ( 'bull-board-config:' , config ) ;
17
-
18
15
19
16
const redisConfig = {
20
17
redis : {
@@ -50,7 +47,11 @@ const app = express();
50
47
app . set ( 'views' , __dirname + '/views' ) ;
51
48
app . set ( 'view engine' , 'ejs' ) ;
52
49
53
- app . use ( morgan ( 'combined' ) ) ;
50
+ if ( app . get ( 'env' ) !== 'production' ) {
51
+ const morgan = require ( 'morgan' ) ;
52
+ app . use ( morgan ( 'combined' ) ) ;
53
+ }
54
+
54
55
app . use ( ( req , res , next ) => {
55
56
if ( config . PROXY_PATH ) req . proxyUrl = config . PROXY_PATH ;
56
57
next ( ) ;
You can’t perform that action at this time.
0 commit comments