Skip to content

Commit 1f1ed20

Browse files
committed
some debug infos
1 parent b898b29 commit 1f1ed20

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

qiita_client/plugin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,13 @@ def _push_artifacts_files_to_central(qclient, artifacts):
120120

121121
for artifact in artifacts:
122122
if isinstance(artifact, ArtifactInfo):
123+
logger.debug('QiitaCommand::__call__: Push artifact files '
124+
'via %s to central:' % qclient._plugincoupling)
123125
for i in range(len(artifact.files)):
124126
(fp, ftype) = artifact.files[i]
125127
# send file to Qiita central and potentially update
126128
# filepath, which is not done at the moment (2025-11-14)
129+
logger.debug(' artifact files %s pushed to central' % fp)
127130
fp = qclient.push_file_to_central(fp)
128131
artifact.files[i] = (fp, ftype)
129132

qiita_client/qiita_client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,8 @@ def _fetch_artifact_files(self, ainfo):
428428
change occurs.
429429
"""
430430
if self._plugincoupling != 'filesystem':
431+
logger.debug('QiitaClient::get: fetching artfiact file from '
432+
'central: %s' % ainfo['files'])
431433
if 'files' in ainfo.keys():
432434
ainfo['files'] = {
433435
filetype: [
@@ -476,7 +478,10 @@ def get(self, url, rettype='json', **kwargs):
476478
# qiita/qiita_db/handlers/prep_template.py::
477479
# PrepTemplateDBHandler::get
478480
# for the "result" data-structure
481+
logger.debug('QiitaClient::get: fetching artifact metadata'
482+
'-file from central:')
479483
for fp in ['prep-file', 'sample-file']:
484+
logger.debug('QiitaClient::get: file %s' % result[fp])
480485
result[fp] = self.fetch_file_from_central(result[fp])
481486
elif re.search(r"/qiita_db/artifacts/\d+/?$", url):
482487
# client is requesting an artifact, see

0 commit comments

Comments
 (0)