馃悰 Bundle quiddity creation overwrites Switcher name in logger
Summary
When creating quiddity from a bundle, Switcher name gets overwritten in logger.
It affect Scenic where multiple quiddities are created from bundles at initialization. Switcher logging loose its instance name, only last bundled quiddity name is displayed in logging.
Version used to reproduce issue
- switcher: develop@d4204842 (Oct 17, 2022 11:31am GMT-0400)
How to reproduce ?
python3
import pyquid, json
sw = pyquid.Switcher('test-switcher', debug=True)
bundles = """
{
"bundle": {
"scenicThumbnail": {
"pipeline": "timelapse name=thumbnail imgdir=/tmp/scenic/thumbnail framerate=1/1 num_files=true notify_last_files=true maxfiles=5 quality=50 width=64 <shmr",
"doc": {
"long_name": "Scenic thumbnail",
"category": "video",
"tags": "reader",
"description": "Thumbnail factory for Scenic"
}
}
}
}"""
sw.load_bundles(json.loads(bundles))
sw.create('scenicThumbnail', 'scenicThumbnail0')
sw.create('dummy', 'dummy0')
Last log entry reads with bundled quiddity name instead of Switcher name.
2022-11-04 14:11:55.324|scenicThumbnail0|ef79126d-9171-4717-83a2-92ff993f60d7|825637|825637|debug: hello from plugin|property-quid.cpp:281
Expected behavior
We should continue to read Switcher name in logs even after bundled quiddity creation like so
2022-11-04 14:11:55.324|test-switcher|ef79126d-9171-4717-83a2-92ff993f60d7|825637|825637|debug: hello from plugin|property-quid.cpp:281
What is the frequency of occurrence of this behavior ?
Every time a bundled quiddity is created.
Other comment
(Provide here extra comment if any)