Skip to content

Commit

Permalink
Merge pull request #842 from marklogic-community/bugfix/DHF-487-#658-…
Browse files Browse the repository at this point in the history
…fragtoolarge

Truncate the response being logged to something reasonable
  • Loading branch information
aebadirad authored Apr 2, 2018
2 parents 4f2710b + 424cc8d commit efcaafc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion marklogic-data-hub/src/server-side/impl/flow-lib.sjs
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ function safeRun(func) {
try {
let resp = func();
let duration = xdmp.elapsedTime().subtract(before);
tracelib.pluginTrace(rfc.getItemContext(), resp, duration);
tracelib.pluginTrace(rfc.getItemContext(), xdmp.describe(resp, 1000000), duration);
return resp;
}
catch(ex) {
Expand Down
2 changes: 1 addition & 1 deletion marklogic-data-hub/src/server-side/impl/flow-lib.xqy
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ declare function flow:run-collector(
}
(: log and write the trace :)
let $_ := (
trace:plugin-trace($item-context, $resp, xdmp:elapsed-time() - $before),
trace:plugin-trace($item-context, xdmp:describe($resp, 1000000), xdmp:elapsed-time() - $before),
trace:write-trace($item-context)
)
return
Expand Down

0 comments on commit efcaafc

Please sign in to comment.