Vai al contenuto

utils

utils

Utility functions for the application.

log_debug(dict_obj)

Logs a dictionary object in debug mode with indentation and sorting keys. :param dict_obj: dictionary-like object to log

Source code in utils.py
def log_debug(dict_obj: Any) -> None:
    """
    Logs a dictionary object in debug mode with indentation and sorting keys.
    :param dict_obj: dictionary-like object to log
    """
    logging.debug(dumps(dict_obj, indent=4, sort_keys=True, default=str))