Add request logging

This commit is contained in:
Michael Jackson
2019-08-02 17:34:00 -07:00
parent 7af4d4dc58
commit 4774e61d50
14 changed files with 112 additions and 52 deletions

View File

@ -157,7 +157,7 @@ function searchEntries(stream, filename) {
* Redirect to the "index" file if a directory was requested.
*/
async function findEntry(req, res, next) {
const stream = await getPackage(req.packageName, req.packageVersion);
const stream = await getPackage(req.packageName, req.packageVersion, req.log);
const { foundEntry: entry, matchingEntries: entries } = await searchEntries(
stream,
req.filename