mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Remove old log method
This commit is contained in:
parent
5658801f72
commit
55998c796f
1 changed files with 1 additions and 22 deletions
|
@ -9,10 +9,10 @@ import pstats
|
|||
import sqlite3
|
||||
import StringIO
|
||||
import os
|
||||
from datetime import datetime, time
|
||||
import time
|
||||
import unicodedata
|
||||
import xml.etree.ElementTree as etree
|
||||
from datetime import datetime, time
|
||||
|
||||
import xbmc
|
||||
import xbmcaddon
|
||||
|
@ -22,27 +22,6 @@ import xbmcvfs
|
|||
#################################################################################################
|
||||
# Main methods
|
||||
|
||||
def logMsg(title, msg, level=1):
|
||||
|
||||
# Get the logLevel set in UserClient
|
||||
try:
|
||||
logLevel = int(window('emby_logLevel'))
|
||||
except ValueError:
|
||||
logLevel = 0
|
||||
|
||||
if logLevel >= level:
|
||||
|
||||
if logLevel == 2: # inspect.stack() is expensive
|
||||
try:
|
||||
xbmc.log("%s -> %s : %s" % (title, inspect.stack()[1][3], msg))
|
||||
except UnicodeEncodeError:
|
||||
xbmc.log("%s -> %s : %s" % (title, inspect.stack()[1][3], msg.encode('utf-8')))
|
||||
else:
|
||||
try:
|
||||
xbmc.log("%s -> %s" % (title, msg))
|
||||
except UnicodeEncodeError:
|
||||
xbmc.log("%s -> %s" % (title, msg.encode('utf-8')))
|
||||
|
||||
class Logging():
|
||||
|
||||
LOGGINGCLASS = None
|
||||
|
|
Loading…
Reference in a new issue