mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Add error mode to logging
This commit is contained in:
parent
da7685b03f
commit
77b99210c1
1 changed files with 6 additions and 1 deletions
|
@ -47,8 +47,13 @@ class Logging(object):
|
|||
|
||||
def log(self, msg, level=1):
|
||||
|
||||
extra = ""
|
||||
if level == -1:
|
||||
# Error mode
|
||||
extra = "::ERROR"
|
||||
|
||||
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
|
||||
log = Logging('Utils').log
|
||||
|
|
Loading…
Reference in a new issue