diff --git a/src/app/panels/middle/p2pool/advanced.rs b/src/app/panels/middle/p2pool/advanced.rs index 72f8993..619dcc4 100644 --- a/src/app/panels/middle/p2pool/advanced.rs +++ b/src/app/panels/middle/p2pool/advanced.rs @@ -107,10 +107,10 @@ impl P2pool { ui.add_space(SPACE); slider_state_field( ui, - "Log level [ 2-6 ]:", + "Log level [ 0-6 ]:", P2POOL_LOG, &mut self.log_level, - 2..=6, + 0..=6, ); }) }); diff --git a/src/helper/p2pool.rs b/src/helper/p2pool.rs index f38c827..b710205 100644 --- a/src/helper/p2pool.rs +++ b/src/helper/p2pool.rs @@ -373,12 +373,6 @@ impl Helper { } else { &state.ip }; - // log level of p2pool must be minimum 2 so Gupaxx works correctly. - let log_level = if state.log_level < 2 { - 2 - } else { - state.log_level - }; args.push("--wallet".to_string()); args.push(state.address.clone()); // Wallet args.push("--host".to_string()); @@ -388,7 +382,7 @@ impl Helper { args.push("--zmq-port".to_string()); args.push(state.zmq.to_string()); // ZMQ args.push("--loglevel".to_string()); - args.push(log_level.to_string()); // Log Level + args.push(state.log_level.to_string()); // Log Level args.push("--out-peers".to_string()); args.push(state.out_peers.to_string()); // Out Peers args.push("--in-peers".to_string());