Skip to content

Commit 80db16f

Browse files
committed
refactor: change log level from info to debug
Updated the log level from info to debug in testnet_cleanup.py for withdraw_reward, deregister_stake_addr, retire_drep, and return_funds_to_faucet functions to reduce verbosity.
1 parent ded9735 commit 80db16f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cardano_node_tests/utils/testnet_cleanup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def withdraw_reward(
4747
except clusterlib.CLIError:
4848
LOGGER.error(f"Failed to withdraw rewards for '{stake_addr_record.address}'") # noqa: TRY400
4949
else:
50-
LOGGER.info(f"Withdrawn rewards for '{stake_addr_record.address}'")
50+
LOGGER.debug(f"Withdrawn rewards for '{stake_addr_record.address}'")
5151

5252

5353
def deregister_stake_addr(
@@ -78,7 +78,7 @@ def deregister_stake_addr(
7878
except clusterlib.CLIError:
7979
LOGGER.error(f"Failed to deregister stake address '{pool_user.stake.address}'") # noqa: TRY400
8080
else:
81-
LOGGER.info(f"Deregistered stake address '{pool_user.stake.address}'")
81+
LOGGER.debug(f"Deregistered stake address '{pool_user.stake.address}'")
8282

8383

8484
def retire_drep(
@@ -109,7 +109,7 @@ def retire_drep(
109109
except clusterlib.CLIError:
110110
LOGGER.error(f"Failed to retire a DRep '{name_template}'") # noqa: TRY400
111111
else:
112-
LOGGER.info(f"Retired a DRep '{name_template}'")
112+
LOGGER.debug(f"Retired a DRep '{name_template}'")
113113

114114

115115
def return_funds_to_faucet(
@@ -154,7 +154,7 @@ def return_funds_to_faucet(
154154
except clusterlib.CLIError:
155155
LOGGER.error(f"Failed to return funds from addresses for '{tx_name}'") # noqa: TRY400
156156
else:
157-
LOGGER.info(f"Returned funds from addresses '{tx_name}'")
157+
LOGGER.debug(f"Returned funds from addresses '{tx_name}'")
158158

159159

160160
def create_addr_record(addr_file: pl.Path) -> clusterlib.AddressRecord:

0 commit comments

Comments
 (0)