Skip to content

Commit

Permalink
logger removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya-Thakur authored Jun 2, 2021
1 parent b374c54 commit cb1f06b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var cors = require('cors')
const express = require('express');
const path = require('path');
const bodyParser = require('body-parser')
var logger = require('logger').createLogger('./log/development.log');
// var logger = require('logger').createLogger('./log/development.log');
const userController = require('./controllers/userController');
const surveyController = require('./controllers/surveyController');
const responseController = require('./controllers/responseController');
Expand All @@ -14,7 +14,7 @@ app.listen(port, () => {
console.log('Express server started at port: 3000');
});
app.use(cors());
logger.info('loading an array', [1,2,3], 'now!');
// logger.info('loading an array', [1,2,3], 'now!');
// app.use( function(req, res, next) {
// res.header('Access-Control-Allow-Origin', '*');
// res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE,OPTIONS');
Expand Down

1 comment on commit cb1f06b

@vercel
Copy link

@vercel vercel bot commented on cb1f06b Jun 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.