where log printed to?
#1
Hi ALL


I'm debugging a script, i add log function in default.py


...
def log(txt):
if isinstance (txt,str):
txt = txt.decode("utf-8")
message = u'%s: %s' % (__addonid__, txt)
xbmc.log(msg=message.encode("utf-8"), level=xbmc.LOGDEBUG)
...

def playVideo(url):
log(" te4ssss ")
req = urllib2.Request(url)
req.add_header('Cookie', 'age_verified=1; path=/; domain=.youporngay.com')
response = urllib2.urlopen(req)
link=response.read()
response.close()
match=re.compile('<a href="([^"]+)">MP4 - For Windows 7, Mac and iPad').findall(link)
for url in match:
listitem = xbmcgui.ListItem(path=htmlp.unescape(url))
log(" te4ssss ")

return xbmcplugin.setResolvedUrl(thisPlugin, True, listitem)

...


I want to know where is the log
the log is NOT in kodi.log


and B.T.W
the script error is:
16:14:47 T:8080 NOTICE: -->Python Interpreter Initialized<--
16:14:49 T:8080 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnboundLocalError'>
Error Contents: local variable 'listitem' referenced before assignment
Traceback (most recent call last):
File "C:\Users\Insun\AppData\Roaming\Kodi\addons\plugin.video.youporngay\default.py", line 131, in <module>
playVideo(url)
File "C:\Users\Insun\AppData\Roaming\Kodi\addons\plugin.video.youporngay\default.py", line 77, in playVideo
return xbmcplugin.setResolvedUrl(thisPlugin, True, listitem)
UnboundLocalError: local variable 'listitem' referenced before assignment
-->End of Python script error report<--
16:14:49 T:8348 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.youporngay/?url=http%3A%2F%2Fwww.youporngay.com%2Fwatch%2F8884229%2Fcelebrity-beater-marian-rivera%2F&mode=2]
16:14:49 T:5964 NOTICE: Thread BackgroundLoader start, auto delete: false
Reply
#2
Resolved!
Please delete this post!
Reply

Logout Mark Read Team Forum Stats Members Help
where log printed to?0