plugin.video.torrenter/resources/scrapers/kinopoisk/LOGGER.py

29 lines
529 B
Python

# -*- coding: utf-8 -*-
#
try:
import xbmcaddon
from functions import log, debug
__settings__ = xbmcaddon.Addon("plugin.video.torrenter")
debug = __settings__.getSetting("debug")
except:
debug = 'true'
def Log(msg, force=False):
log(msg)
def Debug(msg, force=False):
if debug == 'true' or force:
debug(msg, True)
def Info(msg, force=False):
if debug == 'true' or force:
debug(msg, True)
def Warn(msg, force=False):
if debug == 'true' or force:
debug(msg, True)