mirror of
https://github.com/anxdpanic/plugin.video.youtube.git
synced 2025-12-06 02:30:50 -08:00
Standardise logging for script, plugin and service endpoints
This commit is contained in:
parent
f849d51f4e
commit
efb1997862
4 changed files with 85 additions and 65 deletions
|
|
@ -646,6 +646,20 @@ def run(argv):
|
|||
if params:
|
||||
params = dict(parse_qsl(args.query))
|
||||
|
||||
system_version = context.get_system_version()
|
||||
context.log_notice('Script: Running |v{version}|\n'
|
||||
'Kodi: |v{kodi}|\n'
|
||||
'Python: |v{python}|\n'
|
||||
'Category: |{category}|\n'
|
||||
'Action: |{action}|\n'
|
||||
'Params: |{params}|'
|
||||
.format(version=context.get_version(),
|
||||
kodi=str(system_version),
|
||||
python=system_version.get_python_version(),
|
||||
category=category,
|
||||
action=action,
|
||||
params=params))
|
||||
|
||||
if not category:
|
||||
xbmcaddon.Addon().openSettings()
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue