We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5131f0 commit 7f82509Copy full SHA for 7f82509
bin.js
@@ -12,6 +12,9 @@ require("yargs")
12
.option("clear", {
13
describe: "Clear data before starting the runtime",
14
})
15
+ .option("silence", {
16
+ describe: "Silence the console",
17
+ })
18
.option("debug", {
19
describe: "Enable debug mode",
20
server.js
@@ -8,6 +8,14 @@ if (!argv.debug) {
8
console.debug = () => {};
9
}
10
11
+if (argv.silence) {
+ console.log = () => {};
+ console.info = () => {};
+ console.warn = () => {};
+ console.error = () => {};
+ console.debug = () => {};
+}
+
if (argv.clear) {
datastore.clear();
21
0 commit comments