Skip to content

Commit 9e990a7

Browse files
fix(2021): reduce noise in runtime logs
1 parent e8f9dfa commit 9e990a7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

2021/helpers.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Suppress logging
2+
if (!process.env.DEBUG) {
3+
console.debug = () => {}
4+
console.log = () => {}
5+
}
6+
7+
module.exports = console
8+
// module.exports = {
9+
// debug: console.debug,
10+
// info: console.info,
11+
// log: console.log,
12+
// warn: console.warn,
13+
// error: console.error
14+
// }

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy