From 95a68af795dc73326b2f39579212ec1cf45a4222 Mon Sep 17 00:00:00 2001 From: Ruud Date: Mon, 8 Apr 2013 21:40:17 +0200 Subject: [PATCH] Debug logs --- couchpotato/core/plugins/renamer/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/renamer/main.py b/couchpotato/core/plugins/renamer/main.py index 40e1ac6d..4b1fab13 100644 --- a/couchpotato/core/plugins/renamer/main.py +++ b/couchpotato/core/plugins/renamer/main.py @@ -89,7 +89,8 @@ class Renamer(Plugin): # Check to see if the "to" folder is inside the "from" folder. if movie_folder and not os.path.isdir(movie_folder) or not os.path.isdir(self.conf('from')) or not os.path.isdir(self.conf('to')): - log.error('"To" and "From" have to exist.') + l = log.debug if movie_folder else log.error + l('Both the "To" and "From" have to exist.') return elif self.conf('from') in self.conf('to'): log.error('The "to" can\'t be inside of the "from" folder. You\'ll get an infinite loop.')