Live stream fixes, http client rewrite, telemetry improvements
This commit is contained in:
1 parent
df4e16b846
commit
9200bd1c74
63 files changed
+4382
-1157
No files matched your search
@@ -20,4 +20,23 @@ namespace Tests
|
||||
return logLevel
|
||||
end function
|
||||
|
||||
' The lines logged while action(subject) runs.
|
||||
function LogLines(action as function, subject as dynamic) as string[]
|
||||
logPort = CreateObject("roMessagePort")
|
||||
m.global.logger.ObserveFieldScoped("logLine", logPort)
|
||||
action(subject)
|
||||
m.global.logger.UnobserveFieldScoped("logLine")
|
||||
lines = [] as string[]
|
||||
message = logPort.GetMessage()
|
||||
while message <> invalid
|
||||
lines.Push(message.GetData())
|
||||
message = logPort.GetMessage()
|
||||
end while
|
||||
return lines
|
||||
end function
|
||||
|
||||
function LogLineMessage(line as string) as string
|
||||
return line.Mid(line.InStr(" ") + 1).Replace(Chr(27) + "[0m", "")
|
||||
end function
|
||||
|
||||
end namespace
|
||||
Reference in new issue
Block a user