Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
JOSSOUD Olivier
WIM Collect
Commits
fd6bb97d
Commit
fd6bb97d
authored
Jan 27, 2020
by
JOSSOUD Olivier
Browse files
All. Use new logger functions.
parent
4e0270cd
Pipeline
#57589
passed with stages
in 1 minute and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
wimcollect/sftpdmc.py
wimcollect/sftpdmc.py
+1
-1
No files found.
wimcollect/sftpdmc.py
View file @
fd6bb97d
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment