Remove logging of package requests
This commit is contained in:
@ -5,7 +5,6 @@ const cors = require('cors')
|
||||
const morgan = require('morgan')
|
||||
const unpkg = require('express-unpkg')
|
||||
const { fetchStats } = require('./cloudflare')
|
||||
const { logPackageRequests } = require('./logging')
|
||||
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
@ -52,9 +51,6 @@ const createServer = (config) => {
|
||||
maxAge: config.maxAge
|
||||
}))
|
||||
|
||||
if (config.redisURL)
|
||||
app.use(logPackageRequests(config.redisURL))
|
||||
|
||||
app.use(unpkg.createRequestHandler(config))
|
||||
|
||||
const server = http.createServer(app)
|
||||
|
||||
Reference in New Issue
Block a user