from utils.logger import logger def hex_dump(data: bytes, title: str): s = data.hex(" ").upper() logger.info(f"[{title}] len={len(data)} | {s}")