MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / format

Method format

openhands/app_server/utils/logger.py:116–123  ·  view source on GitHub ↗
(self, record: logging.LogRecord)

Source from the content-addressed store, hash-verified

114 """Formatter for non-colored logging in files."""
115
116 def format(self, record: logging.LogRecord) -> str:
117 # Create a deep copy of the record to avoid modifying the original
118 new_record = _fix_record(record)
119
120 # Strip ANSI color codes from the message
121 new_record.msg = strip_ansi(new_record.msg)
122
123 return super().format(new_record)
124
125
126def strip_ansi(s: str) -> str:

Callers 15

formatMethod · 0.45
get_conversation_linkFunction · 0.45
handle_callback_errorFunction · 0.45
start_jobMethod · 0.45
start_jobMethod · 0.45
get_suggestionsMethod · 0.45
_create_file_nameMethod · 0.45

Calls 2

_fix_recordFunction · 0.85
strip_ansiFunction · 0.85