Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add timestamps to output.txt #247

Open
anrossi opened this issue Nov 17, 2020 · 1 comment
Open

Add timestamps to output.txt #247

anrossi opened this issue Nov 17, 2020 · 1 comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@anrossi
Copy link
Contributor

anrossi commented Nov 17, 2020

It would be helpful to include on each line in output.txt, the timestamp of when the line was logged.

@marten-seemann
Copy link
Collaborator

Agreed. This sounds like a good idea.

This is how we capture the output:

output = subprocess.run(
cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT
)

I assume one could somehow modify / wrap the subprocess.PIPE to have a timestamp added to every line.

@marten-seemann marten-seemann added help wanted Extra attention is needed good first issue Good for newcomers labels Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants