-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
[Bug]: logger produces duplicates on MacOS #339
Labels
bug
Something isn't working
Comments
This bug occurs on Windows too |
nweston
added a commit
to nweston/OpenAdapt
that referenced
this issue
Jul 8, 2023
Acquire a lock in utils.configure_logging. Otherwise this function has a race where two threads can both call logger.remove(), and then both call logger.add(), creating two identical sinks.
7 tasks
nweston
added a commit
to nweston/OpenAdapt
that referenced
this issue
Jul 9, 2023
Acquire a lock in utils.configure_logging. Otherwise this function has a race where two threads can both call logger.remove(), and then both call logger.add(), creating two identical sinks.
nweston
added a commit
to nweston/OpenAdapt
that referenced
this issue
Jul 11, 2023
abrichr
pushed a commit
that referenced
this issue
Jul 17, 2023
* fix(utils): prevent duplicate log messages (#339) Acquire a lock in utils.configure_logging. Otherwise this function has a race where two threads can both call logger.remove(), and then both call logger.add(), creating two identical sinks. * refactor(record): remove redundant configure_logging calls configure_logging is already called at the module level so there's no need to call it with identical arguments in various functions. * fixup! fix(utils): prevent duplicate log messages (#339)
R-ohit-B-isht
pushed a commit
to R-ohit-B-isht/OpenAdapt
that referenced
this issue
Jun 21, 2024
…ptAI#366) * fix(utils): prevent duplicate log messages (OpenAdaptAI#339) Acquire a lock in utils.configure_logging. Otherwise this function has a race where two threads can both call logger.remove(), and then both call logger.add(), creating two identical sinks. * refactor(record): remove redundant configure_logging calls configure_logging is already called at the module level so there's no need to call it with identical arguments in various functions. * fixup! fix(utils): prevent duplicate log messages (OpenAdaptAI#339)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
During recording:
This does not occur if
utils.configure_logging
is modified toreturn
immediately.To Reproduce
python -m openadapt.record foo
The text was updated successfully, but these errors were encountered: