mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Fix logging
This commit is contained in:
parent
89ff748b9d
commit
bb1a180a1b
1 changed files with 2 additions and 2 deletions
|
@ -51,10 +51,10 @@ class LogHandler(logging.StreamHandler):
|
||||||
|
|
||||||
if self.mask_info:
|
if self.mask_info:
|
||||||
for server in self.sensitive['Server']:
|
for server in self.sensitive['Server']:
|
||||||
string = string.replace(server or "{server}", "{emby-server}")
|
string = string.replace(server.encode('utf-8') or "{server}", "{emby-server}")
|
||||||
|
|
||||||
for token in self.sensitive['Token']:
|
for token in self.sensitive['Token']:
|
||||||
string = string.replace(token or "{token}", "{emby-token}")
|
string = string.replace(token.encode('utf-8') or "{token}", "{emby-token}")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
xbmc.log(string, level=xbmc.LOGNOTICE)
|
xbmc.log(string, level=xbmc.LOGNOTICE)
|
||||||
|
|
Loading…
Reference in a new issue