Skip to main content

openhands.resolver.utils

reset_logger_for_multiprocessing

def reset_logger_for_multiprocessing(logger: logging.Logger, instance_id: str,
log_dir: str)

Reset the logger for multiprocessing.

Save logs to a separate file for each process, instead of trying to write to the same file/console from multiple processes.