Adjust cli.ask() log formatting

This commit is contained in:
2Shirt 2023-06-10 17:58:23 -07:00
parent bcb9228234
commit 4202d3c1dc
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -678,10 +678,10 @@ def ask(prompt_msg: str) -> bool:
# Show prompt
response = input_text(f'{prompt_msg} [Y/N]: ', validator=validator)
if response.upper().startswith('Y'):
LOG.info('%sYes', prompt_msg)
LOG.info('%s Yes', prompt_msg)
return True
if response.upper().startswith('N'):
LOG.info('%sNo', prompt_msg)
LOG.info('%s No', prompt_msg)
return False
# This shouldn't ever be reached