Skip to content

Commit

Permalink
feat: production에서 combined로 로깅 (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcho21 authored Dec 15, 2022
1 parent 1ae7ba0 commit 4f727fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions server/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ export default {
CLIENT_PATH: process.env.CLIENT_PATH,
PORT: process.env.PORT,
SOCKET_PATH: process.env.WEBSOCKET_PATH,
NODE_ENV: process.env.NODE_ENV,
};
2 changes: 1 addition & 1 deletion server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import morgan from 'morgan';
import { Server } from 'socket.io';

const app = express();
app.use(morgan('dev'));
app.use(env.NODE_ENV === 'production' ? morgan('combined') : morgan('dev'));
app.use(express.json());
app.use(cookieParser(env.COOKIE_SECRET_KEY));
app.use(cors());
Expand Down

0 comments on commit 4f727fe

Please sign in to comment.