Hi all :wave: I am currently working on deploying ...
# troubleshooting
d
Hi all đŸ‘‹ I am currently working on deploying Meltano in production and therefore reducing print to stdout only to warning or error messages. According to documentation that should be possible through setting
--log-level=warning
or setting environment variables. I have tried both methods, but each time info messages get printed, e.g.:
Copy code
pipenv run meltano --log-level=warning elt tap-bing-ads target-jsonl --job_id="test-bing"
meltano      | No state was found, complete import.
tap-bing-ads | INFO Syncing reports
tap-bing-ads | INFO Creating SOAP client with OAuth refresh credentials for service: ReportingService 
(...)
Has anyone else encountered this issue?
v
I haven't dove into this specifically, but my hunch is that --log-level sets the log-level for Meltano not necessarily the logs for the taps/targets. https://gitlab.com/meltano/sdk/-/issues/170 Touches on some of this. For bing the logging.conf is stored here https://github.com/singer-io/singer-python/blob/master/singer/logging.conf There's some dirty solutions, I"m guessing others know better solutions. I'm still learning about logging and python
d
Hi Derek, thank you so mu much for your reply! That makes sense and is what I suspected - I will look into possible solutions, thank you!
v
I'd guess tap-bing-ads doesn't have something similar but I have no idea
d
Thank you! I have quite a few taps including some custom ones, so either way that’s really useful example, thank you!