Skip to content

Commit

Permalink
use LOGINFO
Browse files Browse the repository at this point in the history
  • Loading branch information
sualfred committed Apr 26, 2020
1 parent 0ba028a commit 115d12a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/lib/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
ADDON_DATA_IMG_PATH = os.path.join(xbmc.translatePath("special://profile/addon_data/%s/img" % ADDON_ID))
ADDON_DATA_IMG_TEMP_PATH = os.path.join(xbmc.translatePath("special://profile/addon_data/%s/img/tmp" % ADDON_ID))

NOTICE = xbmc.LOGNOTICE
INFO = xbmc.LOGINFO
WARNING = xbmc.LOGWARNING
DEBUG = xbmc.LOGDEBUG
ERROR = xbmc.LOGERROR
Expand All @@ -39,9 +39,9 @@

def log(txt,loglevel=DEBUG,force=False):
if (ADDON.getSettingBool('log') or force) and loglevel not in [WARNING, ERROR]:
loglevel = NOTICE
loglevel = INFO

message = u'[ %s ] %s' % (ADDON_ID,txt)
message = u'[ %s ] %s' % (ADDON_ID, txt)
xbmc.log(msg=message, level=loglevel)


Expand Down

0 comments on commit 115d12a

Please sign in to comment.