mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 23:11:06 +03:30
13 lines
291 B
JavaScript
Vendored
13 lines
291 B
JavaScript
Vendored
module.exports = function silence (logName, exports) {
|
|
const logs = {}
|
|
Object.keys(exports).forEach(key => {
|
|
if (key !== 'error') {
|
|
exports[key] = (...args) => {
|
|
if (!logs[key]) logs[key] = []
|
|
logs[key].push(args)
|
|
}
|
|
}
|
|
})
|
|
exports[logName] = logs
|
|
}
|