From 9e98e86c8c1bbc87cbee9355a2c9e9fcb2b1266a Mon Sep 17 00:00:00 2001 From: jerabekjiri Date: Mon, 26 Aug 2024 01:04:06 +0200 Subject: [PATCH] add debug timer No-Issue --- galaxy_ng/tests/integration/api/rbac_actions/utils.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/galaxy_ng/tests/integration/api/rbac_actions/utils.py b/galaxy_ng/tests/integration/api/rbac_actions/utils.py index 4427848b2d..3ccd0c9f5d 100644 --- a/galaxy_ng/tests/integration/api/rbac_actions/utils.py +++ b/galaxy_ng/tests/integration/api/rbac_actions/utils.py @@ -12,6 +12,7 @@ wait_for_all_tasks as wait_for_all_tasks_fixtures, AnsibleDistroAndRepo ) +import logging from ansible.galaxy.api import GalaxyError @@ -33,6 +34,8 @@ gc_admin = galaxy_client("admin", basic_token=False, ignore_cache=True) ''' +log = logging.getLogger(__name__) + API_ROOT = CLIENT_CONFIG["url"] PULP_API_ROOT = f"{API_ROOT}pulp/api/v3/" SERVER = API_ROOT.split("/api/")[0] @@ -153,6 +156,8 @@ def podman_push(username, password, container, tag="latest"): print('-------------------PODMAN PUSH-----------------------') start = time.time() print("test started ", start) + log.debug("debug test started: %s", start) + log.info("info test started: %s", start) _ansible_config = get_ansible_config() _galaxy_client = get_galaxy_client(_ansible_config) @@ -164,6 +169,8 @@ def podman_push(username, password, container, tag="latest"): end = time.time() print('elapsed time ', end - start) + log.debug("debug elapsed time: %s", start) + log.info("info elapsed time: %s", start) return 0