Skip to content

Commit

Permalink
[Core] Fix the logger to handle exception deserializer (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tankilevitch authored Mar 27, 2024
1 parent 143fa98 commit 322a735
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

<!-- towncrier release notes start -->

## 0.5.8 (2024-03-27)


### Bug Fixes

- Fixed a bug in loguru which fails to deserialize an exceptions (#1)


## 0.5.7 (2024-03-20)


Expand Down
2 changes: 2 additions & 0 deletions port_ocean/log/logger_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def _stdout_loguru_handler(level: LogLevelType) -> None:
diagnose=False, # hide variable values in log backtrace
filter=sensitive_log_filter.create_filter(),
)
logger.configure(patcher=exception_deserializer)


def _http_loguru_handler(level: LogLevelType) -> None:
Expand All @@ -50,6 +51,7 @@ def _http_loguru_handler(level: LogLevelType) -> None:
enqueue=True, # process logs in background
filter=sensitive_log_filter.create_filter(full_hide=True),
)
logger.configure(patcher=exception_deserializer)

queue_listener = QueueListener(queue, HTTPMemoryHandler())
queue_listener.start()
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "port-ocean"
version = "0.5.7"
version = "0.5.8"
description = "Port Ocean is a CLI tool for managing your Port projects."
readme = "README.md"
homepage = "https://app.getport.io"
Expand Down

0 comments on commit 322a735

Please sign in to comment.