Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

Commit

Permalink
Add some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Stano Turza committed Mar 27, 2019
1 parent 9faab08 commit d77c6f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion service.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ def __init__(self):

def notify(self, text, error=False):
icon = u'DefaultIconError.png' if error else ''
xbmc.executebuiltin(u'Notification("%s","%s",5000, %s)' % (self._addon.getAddonInfo('name'), text, icon))
logger.log.info(str(type(icon)) + ' - ' + icon)
logger.log.info(str(type(self._addon.getAddonInfo('name').encode("utf-8"))) + ' - ' + self._addon.getAddonInfo('name').encode("utf-8"))
logger.log.info(str(type(text)) + ' - ' + text)
xbmc.executebuiltin(u'Notification("%s","%s",5000, %s)' % (self._addon.getAddonInfo('name').encode("utf-8"), text, icon))

def get_last_used_device(self, devices):
la = 9999999999999
Expand Down

0 comments on commit d77c6f0

Please sign in to comment.