Skip to content

Disable logging propagation, use current stderr as output#541

Merged
mmckerns merged 1 commit intouqfoundation:masterfrom
leogama:patch-2
Aug 11, 2022
Merged

Disable logging propagation, use current stderr as output#541
mmckerns merged 1 commit intouqfoundation:masterfrom
leogama:patch-2

Conversation

@leogama
Copy link
Contributor

@leogama leogama commented Aug 11, 2022

  1. Propagation can create duplicate messages if the root logger has stdout/stderr handlers set (as observed in Pickling class instance in dict fails unless you try pickling the object directly first #540).
  2. StreamHandler() uses the sys.stderr value as of the time of handler creation, _StderrHandler() always use the current value of sys.stderr.

1. Propagation can create duplicate messages if the root logger has stdout/stderr handlers set (as observed in uqfoundation#540).
2. `StreamHandler()` uses the `sys.stderr` value as of the time of handler creation, `_StderrHandler()` always use the current value of `sys.stderr`.
@mmckerns mmckerns added this to the dill-0.3.6 milestone Aug 11, 2022
@mmckerns mmckerns merged commit 1d3e8cf into uqfoundation:master Aug 11, 2022
@leogama leogama deleted the patch-2 branch August 11, 2022 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants