mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Fix: Consolidate multi-line error logs into single-line JSON format (#11249)
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
parent
08118d742b
commit
d1f8877600
@ -376,6 +376,10 @@ if current_log_level == logging.DEBUG:
|
||||
|
||||
if LOG_JSON:
|
||||
openhands_logger.addHandler(json_log_handler(current_log_level))
|
||||
# Configure concurrent.futures logger to use JSON formatting as well
|
||||
cf_logger = logging.getLogger('concurrent.futures')
|
||||
cf_logger.setLevel(current_log_level)
|
||||
cf_logger.addHandler(json_log_handler(current_log_level))
|
||||
else:
|
||||
openhands_logger.addHandler(get_console_handler(current_log_level))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user