Changed default logging level.

This commit is contained in:
2019-02-02 00:34:40 +01:00
parent 2977ab53b2
commit e3c1f18e3d

View File

@@ -25,7 +25,7 @@ from video import VIDEO_EXTENSIONS, Episode, Movie, Video
from subtitle import SUBTITLE_EXTENSIONS, Subtitle, get_subtitle_path from subtitle import SUBTITLE_EXTENSIONS, Subtitle, get_subtitle_path
from utils import sanitize, refine from utils import sanitize, refine
logging.basicConfig(filename=env.logfile, level=logging.DEBUG) logging.basicConfig(filename=env.logfile, level=logging.INFO)
logger = logging.getLogger('seasonedParser') logger = logging.getLogger('seasonedParser')
fh = logging.FileHandler(env.logfile) fh = logging.FileHandler(env.logfile)
fh.setLevel(logging.INFO) fh.setLevel(logging.INFO)
@@ -191,7 +191,7 @@ def scan_videos(path):
if filename.endswith(VIDEO_EXTENSIONS): # video if filename.endswith(VIDEO_EXTENSIONS): # video
try: try:
video = scan_video(filepath) video = scan_video(filepath)
except InsufficientInfoError as e: except InsufficientNameError as e:
logger.info(e) logger.info(e)
insufficient_name.append(filepath) insufficient_name.append(filepath)
continue continue