Adjust cli.ask() log formatting
This commit is contained in:
parent
bcb9228234
commit
4202d3c1dc
2 changed files with 3 additions and 3 deletions
|
|
@ -2,6 +2,6 @@
|
||||||
#
|
#
|
||||||
## Monitor journal log for data recovery related events
|
## Monitor journal log for data recovery related events
|
||||||
|
|
||||||
echo -e 'Monitoring journal output...\n'
|
echo -e 'Monitoring journal output...\n'
|
||||||
journalctl -kf \
|
journalctl -kf \
|
||||||
| grep -Ei --color=always 'ata|nvme|scsi|sd[a..z]+|usb|comreset|critical|error'
|
| grep -Ei --color=always 'ata|nvme|scsi|sd[a..z]+|usb|comreset|critical|error'
|
||||||
|
|
|
||||||
|
|
@ -678,10 +678,10 @@ def ask(prompt_msg: str) -> bool:
|
||||||
# Show prompt
|
# Show prompt
|
||||||
response = input_text(f'{prompt_msg} [Y/N]: ', validator=validator)
|
response = input_text(f'{prompt_msg} [Y/N]: ', validator=validator)
|
||||||
if response.upper().startswith('Y'):
|
if response.upper().startswith('Y'):
|
||||||
LOG.info('%sYes', prompt_msg)
|
LOG.info('%s Yes', prompt_msg)
|
||||||
return True
|
return True
|
||||||
if response.upper().startswith('N'):
|
if response.upper().startswith('N'):
|
||||||
LOG.info('%sNo', prompt_msg)
|
LOG.info('%s No', prompt_msg)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# This shouldn't ever be reached
|
# This shouldn't ever be reached
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue