Restrict journal messages in ddrescue-tui
This commit is contained in:
parent
86f748c599
commit
45a7f84e19
2 changed files with 8 additions and 1 deletions
7
scripts/journal-datarec-monitor
Executable file
7
scripts/journal-datarec-monitor
Executable 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'
|
||||||
|
|
@ -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',
|
watch_file=f'{state.log_dir}/smart.out',
|
||||||
)
|
)
|
||||||
if PLATFORM == 'Linux':
|
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)
|
state.ui.set_current_pane_height(DDRESCUE_OUTPUT_HEIGHT)
|
||||||
|
|
||||||
# Run pass(es)
|
# Run pass(es)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue