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

29 lines
529 B
Python
Raw Normal View History

2015-01-09 14:11:21 +03:00
# -*- coding: utf-8 -*-
#
try:
import xbmcaddon
2015-12-23 18:26:19 +03:00
from functions import log, debug
2015-01-09 14:11:21 +03:00
__settings__ = xbmcaddon.Addon("plugin.video.torrenter")
debug = __settings__.getSetting("debug")
except:
debug = 'true'
def Log(msg, force=False):
2015-12-23 18:26:19 +03:00
log(msg)
2015-01-09 14:11:21 +03:00
def Debug(msg, force=False):
if debug == 'true' or force:
2015-12-23 18:26:19 +03:00
debug(msg, True)
2015-01-09 14:11:21 +03:00
def Info(msg, force=False):
if debug == 'true' or force:
2015-12-23 18:26:19 +03:00
debug(msg, True)
2015-01-09 14:11:21 +03:00
def Warn(msg, force=False):
if debug == 'true' or force:
2015-12-23 18:26:19 +03:00
debug(msg, True)