def log_binary(logger, message, **kwargs):
if logger.isEnabledFor(logging.DEBUG):<EOL><INDENT>output = ('<STR_LIT>'.format(k, binascii.hexlify(<EOL>bytearray(v)).decode()) for k, v in sorted(kwargs.items()))<EOL>logger.debug('<STR_LIT>', message, '<STR_LIT:U+002CU+0020>'.join(output))<EOL><DEDENT>
Log binary data if debug is enabled.