Skip to content

Commit a6ad5f4

Browse files
committed
Remove LOGSEVERE and LOGNOTICE log levels to comply to xbmc/xbmc#18346
1 parent 7513852 commit a6ad5f4

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

addon.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<addon id="script.module.xbmcswift2" name="xbmcswift2" provider-name="Jonathan Beluch (jbel), enen92" version="19.0.0">
1+
<addon id="script.module.xbmcswift2" name="xbmcswift2" provider-name="Jonathan Beluch (jbel), enen92" version="19.0.1">
22
<requires>
33
<import addon="xbmc.python" version="3.0.0" />
44
</requires>
@@ -9,6 +9,7 @@
99
<license>GPL-3.0</license>
1010
<summary lang="en_GB">xbmcswift2 is a small framework to ease development of KODI addons.</summary>
1111
<description lang="en_GB">xbmcswift2 is a small framework to ease development of KODI addons.</description>
12+
<news>Remove LOGSEVERE and LOGNOTICE log levels to comply to https://github.com/xbmc/xbmc/pull/18346</news>
1213
<assets>
1314
<icon>icon.png</icon>
1415
</assets>

lib/xbmcswift2/logger.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,24 @@
2323

2424

2525
class XBMCFilter(object):
26-
'''A logging filter that streams to STDOUT or to the xbmc log if
27-
running inside XBMC.
26+
'''A logging filter that streams to STDOUT or to the kodi log if
27+
running inside KODI.
2828
'''
2929
python_to_xbmc = {
3030
'DEBUG': 'LOGDEBUG',
31-
'INFO': 'LOGNOTICE',
31+
'INFO': 'LOGINFO',
3232
'WARNING': 'LOGWARNING',
3333
'ERROR': 'LOGERROR',
34-
'CRITICAL': 'LOGSEVERE',
34+
'CRITICAL': 'LOGFATAL',
3535
}
3636

3737
xbmc_levels = {
3838
'LOGDEBUG': 0,
3939
'LOGINFO': 1,
40-
'LOGNOTICE': 2,
41-
'LOGWARNING': 3,
42-
'LOGERROR': 4,
43-
'LOGSEVERE': 5,
44-
'LOGFATAL': 6,
45-
'LOGNONE': 7,
40+
'LOGWARNING': 2,
41+
'LOGERROR': 3,
42+
'LOGFATAL': 4,
43+
'LOGNONE': 5,
4644
}
4745

4846
def __init__(self, prefix):

0 commit comments

Comments
 (0)