print logging state upon change
This commit is contained in:
parent
2e026cfc85
commit
6f264d9278
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ impl ConditionalEventHandler for BacktickEventHandler {
|
|||
if let Some(k) = evt.get(0) {
|
||||
if *k == KeyEvent::from('`') {
|
||||
let mut state = self.toggle_state.lock().unwrap();
|
||||
println!("Stdout Logging: {}", if *state { "ON".green() } else { "OFF".red() });
|
||||
if *state {
|
||||
LOGGER.write_to_stdout();
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue