Skip to content

Commit

Permalink
Merge pull request #189 from liampauling/release/1.5.7
Browse files Browse the repository at this point in the history
logging rename, sentry uses name in extra causing logging overwrite
  • Loading branch information
liampauling committed Jun 1, 2020
2 parents a81f41f + f466de7 commit 6232d3c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
Release History
---------------

1.5.7 (2020-06-01)
+++++++++++++++++++

**Bug Fixes**

- Sentry uses name in extra so do not override.

1.5.6 (2020-06-01)
+++++++++++++++++++

Expand Down
2 changes: 1 addition & 1 deletion flumine/__version__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__title__ = "flumine"
__description__ = "Betfair trading framework"
__url__ = "https://github.com/liampauling/flumine"
__version__ = "1.5.6"
__version__ = "1.5.7"
__author__ = "Liam Pauling"
__license__ = "MIT"
6 changes: 3 additions & 3 deletions flumine/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def run(self) -> None:
logger.info(
"BackgroundWorker {0} starting".format(self.name),
extra={
"name": self.name,
"worker_name": self.name,
"function": self.function,
"context": self.context,
},
Expand All @@ -48,7 +48,7 @@ def run(self) -> None:
logger.debug(
"BackgroundWorker {0} executing".format(self.name),
extra={
"name": self.name,
"worker_name": self.name,
"function": self.function,
"context": self.context,
},
Expand All @@ -61,7 +61,7 @@ def run(self) -> None:
logger.error(
"Error in BackgroundWorker {0}: {1}".format(self.name, e),
extra={
"name": self.name,
"worker_name": self.name,
"function": self.function,
"context": self.context,
},
Expand Down

0 comments on commit 6232d3c

Please sign in to comment.