Hi everyone, I have question regarding Logging: W...
# troubleshooting
m
Hi everyone, I have question regarding Logging: With the singer-sdk 3.7 we were able to add custom log messages this way:
Copy code
import logging
...
LOGGER = logging.getLogger("tap-name")
...
<http://LOGGER.info|LOGGER.info>(msg)
With singer-sdk 3.9 this does not work anymore and we get the error:
Copy code
...
singer_sdk\streams\core.py", line 131, in __init__
    self.logger: logging.Logger = tap.logger.getChild(self.name)
AttributeError: 'mappingproxy' object has no attribute 'logger'
Any ideas?
1
e
Hi @Marc Panzirsch. Are you overriding the stream's
__init__
method?
❤️ 1
m
Hey Edgar, thanks for the hint! We lost some of the parameters while overriding the
___init___
method.
👍 1