add: debug information for certain actions (#1533)
This commit is contained in:
parent
0c24edea7f
commit
29332ca684
1 changed files with 7 additions and 3 deletions
|
|
@ -232,8 +232,6 @@ impl InputHandler {
|
|||
// Actions, that are independent from the specific client
|
||||
// and not session idempotent should be specified here
|
||||
Action::NewTab(_)
|
||||
| Action::CloseFocus
|
||||
| Action::CloseTab
|
||||
| Action::Run(_)
|
||||
| Action::NewPane(_)
|
||||
| Action::WriteChars(_)
|
||||
|
|
@ -246,7 +244,13 @@ impl InputHandler {
|
|||
| Action::ToggleFocusFullscreen
|
||||
| Action::Write(_) => {
|
||||
let client_id = clients.first().unwrap();
|
||||
log::error!("Sending action to client: {}", client_id);
|
||||
log::debug!("Sending action to client: {}", client_id);
|
||||
self.dispatch_action(action, Some(*client_id));
|
||||
},
|
||||
Action::CloseFocus | Action::CloseTab => {
|
||||
let client_id = clients.first().unwrap();
|
||||
log::debug!("Sending action to client: {}", client_id);
|
||||
log::warn!("Running this action from the focused pane, can lead to unexpected behaviour.");
|
||||
self.dispatch_action(action, Some(*client_id));
|
||||
},
|
||||
_ => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue