Skip to content

Commit

Permalink
removing logger lib
Browse files Browse the repository at this point in the history
  • Loading branch information
danizavtz committed Sep 14, 2023
1 parent 72c4b53 commit 30a3c92
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 112 deletions.
3 changes: 0 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require('dotenv').config();
const express = require('express');
const logger = require('morgan');
const cors = require('cors');
const { expressjwt: jwt } = require('express-jwt');

Expand All @@ -10,8 +9,6 @@ cors({ credentials: true, origin: true });
app.use(cors());
app.use(express.json());

if (process.env.NODE_ENV !== 'test') { app.use(logger('dev')); }

app.use(require('./server/index'));

module.exports = app;
107 changes: 0 additions & 107 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"express-jwt": "^8.4.1",
"express-validator": "^7.0.1",
"jsonwebtoken": "^9.0.2",
"morgan": "^1.10.0",
"pg": "^8.11.3"
},
"devDependencies": {
Expand All @@ -46,4 +45,4 @@
"sinon": "^15.2.0",
"supertest": "^6.3.3"
}
}
}

0 comments on commit 30a3c92

Please sign in to comment.