mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Removed logging in main
This commit is contained in:
parent
0bf83b721b
commit
3ab3cfea3b
3 changed files with 18 additions and 16 deletions
9
main.js
9
main.js
|
@ -27,10 +27,19 @@ const app = express()
|
|||
const logger = require('./logger.js')
|
||||
// const utils = require('./utils.js')
|
||||
// const actions = require('./actions.js')
|
||||
const stat = require('./stat.js')
|
||||
stat.Load()
|
||||
|
||||
const listedFiles = './public/files'
|
||||
|
||||
app.set('view engine', 'ejs')
|
||||
app.use(function (req, res, next) {
|
||||
res.on('finish', function () {
|
||||
logger.LogReq(req, true, res.statusCode)
|
||||
if (res.statusCode !== 404) { stat.LogStat(req.url) }
|
||||
})
|
||||
next()
|
||||
})
|
||||
app.use(express.static('public'))
|
||||
app.use(busboy({
|
||||
limits: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue