Skip to content

Commit

Permalink
xroot: fixed log
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed May 8, 2024
1 parent ce2ca34 commit 562a6e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/xrootiface.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ def _xrootcmd(endpoint, cmd, subcmd, userid, args, app='wopi'):
raise IOError(msg)
# all right, return everything that came in stdout, in binary format
log.debug('msg="Invoked xroot" cmd="%s%s" url="%s" res="%s" elapsedTimems="%.1f"' %
(cmd, ('/' + subcmd if subcmd else ''), url, (res if cmd != 'fileinfo' else '_redacted_'), (tend - tstart) * 1000))
(cmd, ('/' + subcmd if subcmd else ''), url, (res[0].strip(b'\n') if cmd != 'fileinfo' else '_redacted_'),
(tend - tstart) * 1000))
return res[0][res[0].find(b'stdout=') + 7:].strip(b'\n')


Expand Down

0 comments on commit 562a6e1

Please sign in to comment.