in elastic_agent_client/util/logger.py [0:0]
def convert_agent_log_level(agent_log_level):
"""
Maps a log level from the protobuf UnitLogLevel enum to a Python
logging level.
Since the UnitLogLevel enum doesn't directly map to Python's logging integer levels,
this function provides a manual mapping to convert between the two.
If an unknown log level is provided, the function defaults to logging.INFO.
"""
return AGENT_PROTOCOL_TO_PYTHON_LOG_LEVEL.get(agent_log_level, logging.INFO)