Skip to content
This repository was archived by the owner on Oct 21, 2020. It is now read-only.

Commit 91b8ca2

Browse files
committed
fix(electron): only log RPC requests during development
1 parent dca1d6b commit 91b8ca2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ember-electron/config.production.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"network_node_id_handshake": "false",
2828
"node_lifetime_tracing": "false",
2929
"insufficient_work": "true",
30-
"log_rpc": "true",
30+
"log_rpc": "false",
3131
"bulk_pull": "false",
3232
"work_generation_time": "true",
3333
"log_to_cerr": "false",

ember-electron/daemon.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ const startDaemon = async () => {
168168
const peeringPort = await getPort({ host, port: [config.node.peering_port] });
169169
config.rpc.port = port;
170170
config.node.peering_port = peeringPort;
171+
config.node.logging.log_rpc = is.development;
171172

172173
const cpuCount = os.cpus().length;
173174
config.node.io_threads = Math.max(4, Math.ceil(cpuCount / 2));

0 commit comments

Comments
 (0)