Skip to content

Conversation

Southclaws
Copy link
Collaborator

@Southclaws Southclaws commented Jul 7, 2020

This uses a special function name signature pattern to identify points in the code that are waiting for significant events such as reconfigure and initial clones. These points are logged when the program recieves an interrupt signal.

For example, if Pico was hanging while initialising, you'd see this after the stack trace:

Code that was waiting:
  - start_wait_init

This is much easier to read for a user not familiar with Go, the codebase or stack traces. The information is available in the stack trace above, but requires knowledge of the codebase to identify function names and file paths.

This uses a special function name signature pattern to identify points in the code that are waiting for significant events such as reconfigure and initial clones. These points are logged when the program recieves an interrupt signal.
@Southclaws Southclaws merged commit ce78391 into staging Jul 12, 2020
@Southclaws Southclaws deleted the stack-wait-status branch July 12, 2020 14:15
Southclaws added a commit that referenced this pull request Jul 12, 2020
This uses a special function name signature pattern to identify points in the code that are waiting for significant events such as reconfigure and initial clones. These points are logged when the program recieves an interrupt signal.
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.

1 participant