Skip to content

Commit

Permalink
Merge pull request #190 from Team-Packman/feature/#189
Browse files Browse the repository at this point in the history
[CHORE] morgan 형식 combined로 변경
  • Loading branch information
hyeon-z authored Oct 7, 2022
2 parents 091bbc2 + 68173e8 commit dab74dd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import { LoggerStream } from './config/logger';

dotenv.config();

const morganFormat = process.env.NODE_ENV !== 'production' ? 'dev' : 'combined';

app.use(
cors({
credentials: true,
Expand All @@ -30,7 +28,7 @@ app.use(express.urlencoded({ extended: true }));
app.use(express.json());

app.use(
morgan(morganFormat, {
morgan('combined', {
skip: (req, res) => {
return res.statusCode < 400;
},
Expand Down

0 comments on commit dab74dd

Please sign in to comment.