Skip to content

Commit 91283f6

Browse files
committed
Slightly improved logging for less spam and more clarity
1 parent e9cf5c9 commit 91283f6

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
### Changed
10+
- Slightly improved logging for less spam and more clarity
11+
912
## [1.1.0] - 28th of September, 2024
1013

1114
### Changed
@@ -154,7 +157,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
154157
### Changed
155158
- Upon serialization the current library version is added to the serialized structures, to allow for seamless updates in the future.
156159

157-
[Unreleased]: https://github.com/Syndace/python-omemo/compare/v1.0.5...HEAD
160+
[Unreleased]: https://github.com/Syndace/python-omemo/compare/v1.1.0...HEAD
161+
[1.1.0]: https://github.com/Syndace/python-omemo/compare/v1.0.5...v1.1.0
158162
[1.0.5]: https://github.com/Syndace/python-omemo/compare/v1.0.4...v1.0.5
159163
[1.0.4]: https://github.com/Syndace/python-omemo/compare/v1.0.3...v1.0.4
160164
[1.0.3]: https://github.com/Syndace/python-omemo/compare/v1.0.2...v1.0.3

omemo/session_manager.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ async def update_device_list(
10341034
and self.__own_device_id not in new_device_list
10351035
):
10361036
logging.getLogger(SessionManager.LOG_TAG).warning(
1037-
"Own device id was not included in the online device list."
1037+
f"Own device id was not included in the online device list for namespace {namespace}."
10381038
)
10391039

10401040
# Add this device to the device list and publish it
@@ -1433,11 +1433,10 @@ async def __get_device_information(
14331433
f" namespace {namespace}.",
14341434
exc_info=True
14351435
)
1436-
except BundleNotFound:
1436+
except BundleNotFound as e:
14371437
logging.getLogger(SessionManager.LOG_TAG).warning(
14381438
f"Bundle not available for device {device_id} of bare JID {bare_jid} for"
1439-
f" namespace {namespace}.",
1440-
exc_info=True
1439+
f" namespace {namespace}: {e}"
14411440
)
14421441
else:
14431442
logging.getLogger(SessionManager.LOG_TAG).debug(

0 commit comments

Comments
 (0)