-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow dict_merge to throw an error on rollbar.init + fix logging init
- ``dict_merge`` is used in ``rollbar.init`` which potentially allows broken config to silently misconfigure the rollbar settings because it is not strictly copying the config passed in. This PR changes ``dict_merge`` to allow a strict mode so ``rollbar.init`` will throw an error instead of misconfiguring rollbar, and when ``dict_merge`` is used to send data to rollbar it uses the unstrict mode to not break at "runtime". - When initializing rollbar via the ``RollbarHandler``, the logging config that is passed in is wrapped by a ``Converting{Dict,List,Tuple}`` which breaks ``copy.deepcopy``. This PR unwraps the converter container types to their base types so that the subsequent call to ``dict_merge`` does not break or hide this error.
- Loading branch information
1 parent
796d9c9
commit 57d9ccc
Showing
4 changed files
with
27 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters