Debug logs

This commit is contained in:
Ruud
2013-04-08 21:40:17 +02:00
parent c1937ea71f
commit 95a68af795

View File

@@ -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.')