Skip to content

Commit c2d0c33

Browse files
committed
INFO -> DEBUG logging
1 parent f69dc05 commit c2d0c33

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

clients/python/client/osparc/_files_api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ async def upload_file_async(
125125
configuration=self.api_client.configuration, timeout=timeout_seconds
126126
) as session:
127127
with logging_redirect_tqdm():
128-
_logger.info("Uploading %s in %i chunk(s)", file.name, n_urls)
128+
_logger.debug("Uploading %s in %i chunk(s)", file.name, n_urls)
129129
async for chunck, size in tqdm(
130130
file_chunk_generator(file, chunk_size),
131131
total=n_urls,
132-
disable=(not _logger.isEnabledFor(logging.INFO)),
132+
disable=(not _logger.isEnabledFor(logging.DEBUG)),
133133
):
134134
index, url = next(url_iter)
135135
uploaded_parts.append(
@@ -155,7 +155,7 @@ async def upload_file_async(
155155
auth=self._auth,
156156
timeout=timeout_seconds,
157157
) as session:
158-
_logger.info(
158+
_logger.debug(
159159
(
160160
"Completing upload of %s "
161161
"(this might take a couple of minutes)..."
@@ -165,7 +165,7 @@ async def upload_file_async(
165165
server_file: File = await self._complete_multipart_upload(
166166
session, links.complete_upload, client_file, uploaded_parts
167167
)
168-
_logger.info("File upload complete: %s", file.name)
168+
_logger.debug("File upload complete: %s", file.name)
169169
return server_file
170170

171171
async def _complete_multipart_upload(

clients/python/client/osparc/_studies_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,13 @@ async def _download(unique_node_name: str, download_link: str) -> None:
124124
asyncio.create_task(_download(link.node_name, link.download_link))
125125
for link in log_links
126126
]
127-
_logger.info(
127+
_logger.debug(
128128
"Downloading log files for study_id=%s and job_id=%s...",
129129
study_id,
130130
job_id,
131131
)
132132
await tqdm_asyncio.gather(
133-
*tasks, disable=(not _logger.isEnabledFor(logging.INFO))
133+
*tasks, disable=(not _logger.isEnabledFor(logging.DEBUG))
134134
)
135135

136136
return folder

0 commit comments

Comments
 (0)