From d7fd3fb5075c1de820988a59749ffb722d726bd7 Mon Sep 17 00:00:00 2001 From: JoeLametta Date: Fri, 9 Nov 2018 08:00:00 +0000 Subject: [PATCH] Convert print statement to logger warning Clarify the description of the error. --- whipper/command/offset.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/whipper/command/offset.py b/whipper/command/offset.py index d7f7e24..d347be7 100644 --- a/whipper/command/offset.py +++ b/whipper/command/offset.py @@ -93,7 +93,8 @@ CD in the AccurateRip database.""" try: responses = accurip.get_db_entry(table.accuraterip_path()) except accurip.EntryNotFound: - print('Accuraterip entry not found') + logger.warning("AccurateRip entry not found: drive offset " + "can't be determined, try again with another disc") if responses: logger.debug('%d AccurateRip responses found.' % len(responses))