toucan_data_sdk/utils/decorators.py
def log_message(logger, message=""):
    """
    Decorator to log a message before executing a function
    """
    def decorator(func):
        @wraps(func)
        def wrapper(*args, **kwargs):
            _log_message(logger, func.__name__, message)
            result = func(*args, **kwargs)
            return result
        return wrapper
    return decorator
def log_message(logger, message=""):
    def decorator(func):
        @wraps(func)
        def wrapper(*args, **kwargs):
            _log_message(logger, func.__name__, message)
            result = func(*args, **kwargs)
            return result
        return wrapper
    return decorator
def log_message ( logger , message = "" ) : def decorator ( func ) : @ wraps ( func ) def wrapper ( * args , * * kwargs ) : _log_message ( logger , func . __name__ , message ) result = func ( * args , * * kwargs ) return result return wrapper return decorator
Decorator to log a message before executing a function
Decorator to log a message before executing a function