]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
orchestra: allow runtime logging for sh 1247/head
authorKyr Shatskyy <kyrylo.shatskyy@gmail.com>
Thu, 3 Jan 2019 07:48:07 +0000 (08:48 +0100)
committerKyr Shatskyy <kyrylo.shatskyy@gmail.com>
Thu, 3 Jan 2019 08:08:04 +0000 (09:08 +0100)
commit7f07b3a14901206e4a0ec1dc567ef9b53a693898
treec20990cb6cb1deb5ab176086f6abdb3109ba05a7
parentfc8635b58b1a47a2e7946a3907b45f3cb4bf555a
orchestra: allow runtime logging for sh

When run.run is used with 'stdout' argument, the output of run command
is read to the given stream and logged with corresponding level only after
completion, which is different from the default behaviour. This 'hides'
useful information when, for example, the command is hung or stuck.
Aso it is usually handy when there are some data can be found
in the log for a prolonged command execution during runtime.

This patch addresses the issue.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
teuthology/orchestra/run.py