Improve logging

requirements.txt
Small UI fixes
This commit is contained in:
BasioMeusPuga
2019-01-19 22:29:56 +05:30
parent a45e183914
commit ca8ddd38a2
8 changed files with 109 additions and 45 deletions

View File

@@ -124,8 +124,11 @@ class BackGroundBookSearch(QtCore.QThread):
if self.valid_directories:
initiate_threads()
info_string = str(len(self.valid_files)) + ' books found'
logger.info(info_string)
if self.valid_files:
info_string = str(len(self.valid_files)) + ' books found'
logger.info(info_string)
else:
logger.error('No books found on scan')
else:
logger.error('No valid directories')