Skip to content

Commit

Permalink
🎨 Change to debug level logging (#174)
Browse files Browse the repository at this point in the history
* update workflow before publishing python package

fix dependency issue and bump version

point to website in project description

fix broken dependency

improve doc

add github token to download artifacts

ensure only read-access @wvangeit

yet another attempt at downloading artifacts

make sure to use repo that ran the trigger wf

another attempt at fixing

change owner

allow publishing to testpypi also when pr

minor change

revert minor (but breaking) change

minor fix

add debug messages

another debug message

hopefully the final version

final fix

minor fix

move master and tag to individual jobs

add debug messages

add python script for determining semantic version

minor changes

minor changes

improve error handling and add version file to artifacts

check if release

minor fix

ensure to enter venv

also when tagging

source venv in publishin workflow

ensure only master

add script for testing 'pure' semver

adapt workflows to new python script

minor change

attempt to evaluate expressions correctly

several fixes to fix tests

ensure repo is checked out in publish workflow

several small fixes

cleanup

debug

minor cleanup

mionr changes

add debug message

minor change

minor change

yet another try

minor change

minor change

minor change

mionr change

minor changes

correct workflow run id

cosmetic change

avoid using gh

change to a single job for publishing

minor cleanup

swap loops in clean up jobs

correction

get correct versions of github workflow files

update a couple of other files

update a few more tests

update yet another file

yet another file

* INFO -> DEBUG logging
  • Loading branch information
bisgaard-itis authored Jul 17, 2024
1 parent 51af1dd commit 4d5ccc5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions clients/python/client/osparc/_files_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ async def upload_file_async(
configuration=self.api_client.configuration, timeout=timeout_seconds
) as session:
with logging_redirect_tqdm():
_logger.info("Uploading %s in %i chunk(s)", file.name, n_urls)
_logger.debug("Uploading %s in %i chunk(s)", file.name, n_urls)
async for chunck, size in tqdm(
file_chunk_generator(file, chunk_size),
total=n_urls,
disable=(not _logger.isEnabledFor(logging.INFO)),
disable=(not _logger.isEnabledFor(logging.DEBUG)),
):
index, url = next(url_iter)
uploaded_parts.append(
Expand All @@ -155,7 +155,7 @@ async def upload_file_async(
auth=self._auth,
timeout=timeout_seconds,
) as session:
_logger.info(
_logger.debug(
(
"Completing upload of %s "
"(this might take a couple of minutes)..."
Expand All @@ -165,7 +165,7 @@ async def upload_file_async(
server_file: File = await self._complete_multipart_upload(
session, links.complete_upload, client_file, uploaded_parts
)
_logger.info("File upload complete: %s", file.name)
_logger.debug("File upload complete: %s", file.name)
return server_file

async def _complete_multipart_upload(
Expand Down
4 changes: 2 additions & 2 deletions clients/python/client/osparc/_studies_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ async def _download(unique_node_name: str, download_link: str) -> None:
asyncio.create_task(_download(link.node_name, link.download_link))
for link in log_links
]
_logger.info(
_logger.debug(
"Downloading log files for study_id=%s and job_id=%s...",
study_id,
job_id,
)
await tqdm_asyncio.gather(
*tasks, disable=(not _logger.isEnabledFor(logging.INFO))
*tasks, disable=(not _logger.isEnabledFor(logging.DEBUG))
)

return folder

0 comments on commit 4d5ccc5

Please sign in to comment.