-
Notifications
You must be signed in to change notification settings - Fork 2
Fix logger subscription cleanup on reconfiguration #14
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
20ca5a1
99b8c66
54384c9
bbd1fe0
b59d830
9163264
b6f95af
90a4fdd
b866cdd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -68,6 +68,11 @@ abstract class RohdBridgeLogger { | |
| bool continueOnError = false, | ||
| bool enableDebugMesage = false, | ||
| }) { | ||
| // Clean up existing logger subscriptions and file sink | ||
| Logger.root.clearListeners(); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry I didn't notice this before, but I think we actually want to capture the |
||
| fileSink?.close(); | ||
| fileSink = null; | ||
|
|
||
| RohdBridgeLogger.continueOnError = continueOnError; | ||
| Logger.root.level = rootLevel; | ||
| _printLevel = printLevel; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.