cli (call): set recording file descriptor when stdout is redirected.
This commit is contained in:
parent
e77bf03f99
commit
72ff011ddd
1 changed files with 3 additions and 0 deletions
|
|
@ -100,6 +100,9 @@ class Common(base.CommandBase):
|
|||
kwargs["sources_data"] = SourcesTest()
|
||||
elif self.args.sources == "auto" and not sys.stdin.isatty():
|
||||
kwargs["sources_data"] = SourcesStdin()
|
||||
|
||||
if not sys.stdout.isatty():
|
||||
kwargs["record_fd"] = 1
|
||||
return kwargs
|
||||
|
||||
async def start(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue