From 55998c796f03ffe14b7e79c75568d9896df796fc Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Fri, 17 Jun 2016 22:05:18 -0500 Subject: [PATCH] Remove old log method --- resources/lib/utils.py | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index 203a7dee..b203ba24 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -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