🐛 Fixed logging bug with /movie
This commit is contained in:
@ -2,6 +2,7 @@ import json
|
|||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import imdb
|
||||||
from .helperClasses import Options
|
from .helperClasses import Options
|
||||||
|
|
||||||
FORMAT = " %(asctime)s | %(name)-16s | %(levelname)-8s | %(message)s"
|
FORMAT = " %(asctime)s | %(name)-16s | %(levelname)-8s | %(message)s"
|
||||||
@ -17,6 +18,8 @@ handler.setFormatter(logging.Formatter(fmt = PRINTFORMAT, datefmt=DATEFORMAT))
|
|||||||
printer.addHandler(handler)
|
printer.addHandler(handler)
|
||||||
printer.propagate = False
|
printer.propagate = False
|
||||||
|
|
||||||
|
imdb._logging.setLevel("CRITICAL")
|
||||||
|
|
||||||
def getParams():
|
def getParams():
|
||||||
with open("resources/slashParameters.json", "r") as f:
|
with open("resources/slashParameters.json", "r") as f:
|
||||||
params = json.load(f)
|
params = json.load(f)
|
||||||
|
Reference in New Issue
Block a user