Add error mode to logging

This commit is contained in:
angelblue05 2016-07-17 18:27:54 -05:00
parent da7685b03f
commit 77b99210c1

View file

@ -47,8 +47,13 @@ class Logging(object):
def log(self, msg, level=1): def log(self, msg, level=1):
extra = ""
if level == -1:
# Error mode
extra = "::ERROR"
if self._getLogLevel(level): if self._getLogLevel(level):
self._printMsg("EMBY %s" % self.title, msg) self._printMsg("EMBY %s%s" % (self.title, extra), msg)
# Initiate class for utils.py document logging # Initiate class for utils.py document logging
log = Logging('Utils').log log = Logging('Utils').log