target-postgres icon indicating copy to clipboard operation
target-postgres copied to clipboard

Allow setting loglevel through config file

Open laurentS opened this issue 3 years ago • 2 comments

While there is a logging_level setting in the config file, it does not seem to be taken into account by the code.

The only setting which seems to have an effect on the loggers is buried in the dependencies under .venv/lib/python3.9/site-packages/singer/logging.conf which has a level=INFO line which can be changed to adjust the log level. This is less than ideal :)

laurentS avatar Apr 19 '22 06:04 laurentS

It looks like the reason for this bug is that, while self.LOGGER.setLevel() is called correctly, its value is overwritten somewhere afterwards with INFO.

laurentS avatar May 31 '22 15:05 laurentS

Somebody found this problem a while ago it seems https://github.com/singer-io/singer-python/issues/113

laurentS avatar Jun 01 '22 14:06 laurentS