fix: do not limit minimum level
Some checks failed
Lockbud / lockbud (push) Has been cancelled

This commit is contained in:
Cyrix126 2024-12-30 14:25:17 +01:00
parent 22a9592c66
commit 853470728c
2 changed files with 3 additions and 9 deletions

View file

@ -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,
);
})
});

View file

@ -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());