Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7163839
D2280.id7846.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
836 B
Subscribers
None
D2280.id7846.diff
View Options
diff --git a/swh/journal/client.py b/swh/journal/client.py
--- a/swh/journal/client.py
+++ b/swh/journal/client.py
@@ -13,6 +13,7 @@
from swh.journal import DEFAULT_PREFIX
logger = logging.getLogger(__name__)
+rdkafka_logger = logging.getLogger(__name__ + '.rdkafka')
# Only accepted offset reset policy accepted
@@ -95,12 +96,12 @@
'on_commit': _on_commit,
'error_cb': _error_cb,
'enable.auto.commit': False,
- 'logger': logger,
+ 'logger': rdkafka_logger,
}
logger.debug('Consumer settings: %s', consumer_settings)
- self.consumer = Consumer(consumer_settings, logger=logger)
+ self.consumer = Consumer(consumer_settings)
topics = ['%s.%s' % (prefix, object_type)
for object_type in object_types]
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 30, 4:35 PM (2 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3220028
Attached To
D2280: Move rdkafka logging to a separate logger
Event Timeline
Log In to Comment