diff --git a/.snyk b/.snyk deleted file mode 100644 index 34f94361a..000000000 --- a/.snyk +++ /dev/null @@ -1,14 +0,0 @@ -# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. -version: v1.13.5 -ignore: {} -# patches apply the minimum changes required to fix a vulnerability -patch: - SNYK-JS-LODASH-450202: - - winston > async > lodash: - patched: '2019-07-18T03:00:16.133Z' - - snyk > inquirer > lodash: - patched: '2019-07-18T03:15:39.906Z' - - snyk > snyk-nodejs-lockfile-parser > lodash: - patched: '2019-07-18T03:15:39.906Z' - - snyk > snyk-nuget-plugin > lodash: - patched: '2019-07-18T03:15:39.906Z' diff --git a/lib/gateway/index.ts b/lib/gateway/index.ts index 48c2772aa..e9ab451aa 100644 --- a/lib/gateway/index.ts +++ b/lib/gateway/index.ts @@ -32,7 +32,7 @@ export function handler(request: FcRequest, response: FcResponse): void { return; } - console.log('[request] [%s] %s %s %s', clientIP, method, url, headers['user-agent'] || '-'); + console.log('[request] [%s] %s %s "%s"', clientIP, method, url, headers['user-agent'] || '-'); server.getArtifact(artifactName) .then(result => { @@ -72,7 +72,7 @@ export async function nowHandler(req: NowRequest, res: NowResponse): Promise { diff --git a/lib/gateway/server.ts b/lib/gateway/server.ts index e3bd75d38..9cbbe8ae4 100644 --- a/lib/gateway/server.ts +++ b/lib/gateway/server.ts @@ -40,6 +40,7 @@ export class Server { `

${err.name}: ${err.message}

` + `
${err.stack}
` ); + console.error(err); } public fcNotFound(response: FcResponse): void { @@ -59,6 +60,7 @@ export class Server { `

${err.name}: ${err.message}

` + `
${err.stack}
` ); + console.error(err); } public nowNotFound(response: NowResponse): void {