Skip to content

Commit 41a1835

Browse files
committed
chore: remove log
1 parent 5c29062 commit 41a1835

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/index.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,9 @@ const session = require('express-session');
99
const passport = require('passport');
1010
const {ensureLoggedIn} = require('connect-ensure-login');
1111
const bodyParser = require('body-parser');
12-
const morgan = require('morgan');
1312

1413
const {authRouter} = require('./login');
1514
const config = require('./config');
16-
console.log('bull-board-config:', config);
17-
1815

1916
const redisConfig = {
2017
redis: {
@@ -50,7 +47,11 @@ const app = express();
5047
app.set('views', __dirname + '/views');
5148
app.set('view engine', 'ejs');
5249

53-
app.use(morgan('combined'));
50+
if (app.get('env') !== 'production') {
51+
const morgan = require('morgan');
52+
app.use(morgan('combined'));
53+
}
54+
5455
app.use((req, res, next) => {
5556
if (config.PROXY_PATH) req.proxyUrl = config.PROXY_PATH;
5657
next();

0 commit comments

Comments
 (0)