Is there a way I can disable logging that says `IN...
# troubleshooting
s
Is there a way I can disable logging that says
INFO Found file
for the
tap-sftp
connector? The files get moved to an
archive
folder so over time it’s going to just repeatedly show the same files that will not need to be resynced.
h
I think the short answer is no. When I run, I see two log lines: Files found and files to be synced. What kind of problem does the log message cause?
s
There’s a pretty significant amount of files loaded per day, so I’m mostly just worried about it taking up space and continuing to display information that isn’t relevant about files that have been loaded already
h
Ah right, it is just log clutter and extra space? If you are OK with less logging in general you might want to try to set —`log-level=warn` (going by memory here). I don’t think there is an easy way to turn it off other than to fork the repo and try to remove it.
e
The tap uses the standard singer-python logger afaict, so might get away with using a logging config file:
Copy code
export LOGGING_CONF_FILE=logging.conf
meltano run tap-sftp ...
with something like
Copy code
[loggers]
keys=root

[handlers]
keys=stderr

[formatters]
keys=child

[logger_root]
level=WARNING
handlers=stderr
formatter=child
propagate=0

[handler_stderr]
level=INFO
class=StreamHandler
formatter=child
args=(sys.stderr,)

[formatter_child]
class=logging.Formatter
format=time=%(asctime)s name=%(name)s level=%(levelname)s message=%(message)s
datefmt=%Y-%m-%d %H:%M:%S
The specific logger is called
singer
if you want to only change that logger’s level.