Forum Discussion
nithyaak
9 years agoVisitor
Hi, I need some help with enabling system log to trace the issue.
i tried doing this :
"
Function sendAsyncHttpCall(url as String) As String
syslog = CreateObject("roSystemLog")
print "sendAsyncHttpCall url=";url
devicestatus=""
devicecheckurlxfer=createobject("roURLTransfer")
port=createobject("roMessagePort")
devicecheckurlxfer.EnableEncodings(true)
devicecheckurlxfer.seturl(url)
devicecheckurlxfer.SetMinimumTransferRate(1,2)
devicecheckurlxfer.SetMessagePort(port)
devicecheckurlxfer.asyncgettostring()
syslog.SetMessagePort(port)
syslog.EnableType("http.error")
syslog.EnableType("http.connect")
while true
msg=wait(100,port) '100 millisecond pause
if type(msg)="roUrlEvent" then
if msg.getresponsecode()=200 then
devicestatus=msg.getstring()
headers=msg.getresponseheadersarray()
exit while
else
devicecheckurlxfer.asynccancel()
end if
else if type(msg) = "roSystemLogEvent" Then
print " >>> its a roSystemLogEvent detected"
else
print "do something useful while we wait for data"
end if
if timer.totalmilliseconds() > 3000 then
?"timeout exceeded"
exit while
end if
end while
print "status=" ; devicestatus
return devicestatus
End Function
"
However, i can't access teh system.log. where and how can I access the system.log to see what is the issue i am having in the client side which is preventing if i have 2 roku box running at the same time.. I have checked my server side no errors. it appears the request is not going through the 2nd roku box if the 1st one is active and vice versa.
i tried doing this :
"
Function sendAsyncHttpCall(url as String) As String
syslog = CreateObject("roSystemLog")
print "sendAsyncHttpCall url=";url
devicestatus=""
devicecheckurlxfer=createobject("roURLTransfer")
port=createobject("roMessagePort")
devicecheckurlxfer.EnableEncodings(true)
devicecheckurlxfer.seturl(url)
devicecheckurlxfer.SetMinimumTransferRate(1,2)
devicecheckurlxfer.SetMessagePort(port)
devicecheckurlxfer.asyncgettostring()
syslog.SetMessagePort(port)
syslog.EnableType("http.error")
syslog.EnableType("http.connect")
while true
msg=wait(100,port) '100 millisecond pause
if type(msg)="roUrlEvent" then
if msg.getresponsecode()=200 then
devicestatus=msg.getstring()
headers=msg.getresponseheadersarray()
exit while
else
devicecheckurlxfer.asynccancel()
end if
else if type(msg) = "roSystemLogEvent" Then
print " >>> its a roSystemLogEvent detected"
else
print "do something useful while we wait for data"
end if
if timer.totalmilliseconds() > 3000 then
?"timeout exceeded"
exit while
end if
end while
print "status=" ; devicestatus
return devicestatus
End Function
"
However, i can't access teh system.log. where and how can I access the system.log to see what is the issue i am having in the client side which is preventing if i have 2 roku box running at the same time.. I have checked my server side no errors. it appears the request is not going through the 2nd roku box if the 1st one is active and vice versa.