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 current thread to logs #419

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jonaseberle
Copy link
Contributor

This adds the current thread_name to log entries which allows to
more easily follow code paths.

The resulting log lines (console and file) look like this:

DEBUG [Thread-43 (clean)] getortho: NUM OPEN TILES: 24.  TOTAL MEM: 2282 MB
INFO [Thread-71 (_udp_listen)] flighttrack: UDP listen thread exiting...
INFO [MainThread] flighttrack: FlightTracker exiting.

This adds the current `thread_name` to log entries which allows to
more easily follow code paths.

The resulting log lines (console and file) look like this:

```
DEBUG [Thread-43 (clean)] getortho: NUM OPEN TILES: 24.  TOTAL MEM: 2282 MB
INFO [Thread-71 (_udp_listen)] flighttrack: UDP listen thread exiting...
INFO [MainThread] flighttrack: FlightTracker exiting.
```
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