Skip to content

Commit 464c6c6

Browse files
committed
be more verbose in debug mode
1 parent 4dfb592 commit 464c6c6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

qiita_client/qiita_client.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,10 @@ def fetch_file_from_central(self, filepath, prefix=None):
790790

791791
shutil.copyfile(filepath, target_filepath)
792792

793+
logger.debug(
794+
'Fetching file "%s" via protocol=%s from Qiita main.' % (
795+
filepath, self._plugincoupling))
796+
793797
return target_filepath
794798

795799
elif self._plugincoupling == 'https':
@@ -812,6 +816,10 @@ def fetch_file_from_central(self, filepath, prefix=None):
812816
with open(target_filepath, 'wb') as f:
813817
f.write(content)
814818

819+
logger.debug(
820+
'Fetching file "%s" via protocol=%s from Qiita main.' % (
821+
filepath, self._plugincoupling))
822+
815823
return target_filepath
816824

817825
else:
@@ -820,7 +828,7 @@ def fetch_file_from_central(self, filepath, prefix=None):
820828
"configuration is NOT defined.") % self._plugincoupling)
821829

822830
def push_file_to_central(self, filepath):
823-
"""Pushs file- or directory content to Qiita's central BASE_DATA_DIR
831+
"""Pushs file- or directory content to Qiita's central BASE_DATA_DIR
824832
directory.
825833
826834
By default, plugin and Qiita's central BASE_DATA_DIR filesystems are

0 commit comments

Comments
 (0)