From 420f685fd95ac762b9a17adf1f1ae2cbe46ee90e Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Sat, 7 Jul 2018 12:27:07 +0200 Subject: [PATCH] Added logging information for errors --- cps/helper.py | 1 + cps/web.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cps/helper.py b/cps/helper.py index b1e78329..3cc93262 100755 --- a/cps/helper.py +++ b/cps/helper.py @@ -335,6 +335,7 @@ def update_dir_stucture(book_id, calibrepath): if not os.path.exists(new_title_path): os.renames(path, new_title_path) else: + logging.getLogger('cps.web').info("Copying title: " + path + " into existing: " + new_title_path) for dir_name, subdir_list, file_list in os.walk(path): for file in file_list: os.renames(os.path.join(dir_name, file), os.path.join(new_title_path + dir_name[len(path):], file)) diff --git a/cps/web.py b/cps/web.py index 7425f5a4..2882b6dd 100755 --- a/cps/web.py +++ b/cps/web.py @@ -1232,7 +1232,7 @@ def author(book_id, page): other_books = get_unique_other_books(entries.all(), author_info.books) except: # Skip goodreads, if site is down/inaccessible - pass + app.logger.error('Goodreads website is down/inaccessible') return render_title_template('author.html', entries=entries, pagination=pagination, title=name, author=author_info, other_books=other_books)