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

Improve logging of sub-processes #2327

Closed

Conversation

sjakobi
Copy link
Member

@sjakobi sjakobi commented Jul 4, 2016

  • Log the fully qualified command name (/usr/bin/ldd instead of ldd)
  • Log how long the sub-process took to finish

getTime Monotonic takes ~150 ns on my machine while the processes all take > 10 ms. The overhead for the timings is therefore rather negligible.

* Log the fully qualified command name (/usr/bin/ldd instead of ldd)
* Log how long the sub-process took to finish
@sjakobi
Copy link
Member Author

sjakobi commented Jul 6, 2016

As one can see in this example the repeated output of the full command can be a bit overwhelming.

Would it make sense to remove the Run process: … line and only have the Process finished in X ms line?

@mgsloan
Copy link
Contributor

mgsloan commented Aug 6, 2016

I accidentally rebased this atop master instead of merging. But it's on master now! Thanks!

@mgsloan mgsloan closed this Aug 6, 2016
@sjakobi sjakobi deleted the better-process-logging branch August 9, 2016 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants