Restrict journal messages in ddrescue-tui

This commit is contained in:
2Shirt 2023-06-04 18:11:14 -07:00
parent 86f748c599
commit 45a7f84e19
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,7 @@
#!/bin/bash
#
## Monitor journal log for data recovery related events
echo -e 'Monitoring journal output...\n'
journalctl -kf \
| grep -Ei --color=always 'ata|nvme|scsi|sd[a..z]+|usb|comreset|critical|error'

View file

@ -2122,7 +2122,7 @@ def run_recovery(state: State, main_menu, settings_menu, dry_run=True) -> None:
watch_file=f'{state.log_dir}/smart.out',
)
if PLATFORM == 'Linux':
state.ui.add_worker_pane(lines=4, cmd='journalctl --dmesg --follow')
state.ui.add_worker_pane(lines=4, cmd='journal-datarec-monitor')
state.ui.set_current_pane_height(DDRESCUE_OUTPUT_HEIGHT)
# Run pass(es)