Skip to content

Commit 8dd12c5

Browse files
committed
Remove noisy logs
1 parent 6008200 commit 8dd12c5

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

server/Logger.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const winston = require('winston')
2525

2626
const logFormat = winston.format.printf(function (info) {
2727
let date = new Date().toISOString()
28-
return `${date}-${info.level}: ${JSON.stringify(info.message, null, 4)}\n`
28+
return `${date} ${info.level}: ${JSON.stringify(info.message, null, 4)}`
2929
})
3030

3131
class Logger {

utils/cache.utils.js

-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ const API = axios.create({
1010

1111
class Cache {
1212
async getPackageSize({ name, version }) {
13-
debug('get package %s@%s', name, version)
1413
try {
1514
const result = await API.get('/package-cache', {
1615
params: { name, version },
1716
})
18-
debug('cache hit')
1917
return result.data
2018
} catch (err) {
2119
console.error(err.statusText)

0 commit comments

Comments
 (0)