Commit fd6bb97d authored by JOSSOUD Olivier's avatar JOSSOUD Olivier
Browse files

All. Use new logger functions.

parent 4e0270cd
Pipeline #57589 passed with stages
in 1 minute and 5 seconds
......@@ -39,7 +39,7 @@ class Collector(utils.LogConfig):
# Download file
self.logger.info("Downloading DMC Picarro file from SFTP server.", day_str)
sftp_client = sftp.connect(self.config[self.object_id], self.logger)
success = sftp.download_file(sftp_client, source_filepath, dest_filepath, self.logger, self.object_id)
success = sftp.download_file(sftp_client, source_filepath, dest_filepath, self.logger)
sftp_client.close()
if not success:
self.logger.error("FAILED to download file in " + dest_filepath, day_str)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment