chia-blockchain/tests/core/util
Kyle Altendorf 7cfa68139e
Add flexibility to log_exceptions() (#14992)
* Add flexibility to `log_exceptions()`

Allows configuration of the exception or exceptions to be caught, whether or not to show the traceback, the log level, and also adds the exception type to aid readability of errors like `KeyError` where the only text is the value of the key requested.

* add `log_exceptions(message=)`

* add tests for `chia.util.log_exceptions()`

* Update test_log_exceptions.py

* Update test_log_exceptions.py

* back to parametrize
2023-05-03 00:30:09 -05:00
..
__init__.py split tests 2021-01-12 17:02:22 -05:00
config.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
test_cached_bls.py isort: Remove all tests.core exceptions and sort the related files (#13962) 2022-11-19 11:18:44 -06:00
test_config.py add system and os dependent timeout adjustments (#13778) 2022-12-15 20:00:00 -06:00
test_file_keyring_synchronization.py tests: Some refactoring of poll_directory and keyring sync tests (#14616) 2023-02-27 15:29:13 -06:00
test_files.py isort: Remove all tests.core exceptions and sort the related files (#13962) 2022-11-19 11:18:44 -06:00
test_jsonify.py remove leading newlines from indented code blocks (#14653) 2023-02-23 21:53:48 -06:00
test_keychain.py isort: Remove all tests.core exceptions and sort the related files (#13962) 2022-11-19 11:18:44 -06:00
test_keyring_wrapper.py isort: Remove all tests.core exceptions and sort the related files (#13962) 2022-11-19 11:18:44 -06:00
test_lockfile.py tests: Some refactoring of poll_directory and keyring sync tests (#14616) 2023-02-27 15:29:13 -06:00
test_log_exceptions.py Add flexibility to log_exceptions() (#14992) 2023-05-03 00:30:09 -05:00
test_lru_cache.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
test_significant_bits.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
test_streamable.py remove leading newlines from indented code blocks (#14653) 2023-02-23 21:53:48 -06:00