Commit 8713ab8d authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

get timings for publish

parent da65c7ee
......@@ -201,6 +201,7 @@ util:log-system-out( "getting DATA from TextGrid…" ),
where starts-with($uri, "textgrid:")
let $color := local:getColor($pos, $count)
let $systemOut := util:log-system-out( "[48;2;"|| $color ||"m[38;2;0;0;0m " || $uri || " [0m" )
let $startTime := util:system-time()
let $response :=
try {
tgconnect:publish( $uri,
......@@ -212,7 +213,7 @@ util:log-system-out( "getting DATA from TextGrid…" ),
true())
} catch * { <error code="{$err:code}" timestamp="{current-dateTime()}">{$err:description}</error> }
return
update insert ( <report uri="{$uri}">{$response}</report>) into //initlog/install/done,
update insert ( <report uri="{$uri}" started="{$startTime}" finished="{util:system-time()}">{$response}</report>) into //initlog/install/done,
(: INDEX :)
util:log-system-out( "reindexing…" ),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment