Convert [ to \[ so the logging backend...

doesn't interpret that as a colour or other command
This commit is contained in:
Jens Sülwald 2022-12-28 10:43:39 +01:00
parent 25071c238c
commit 183bc8321c

View File

@ -29,8 +29,8 @@ def init(device):
def make_images(req: GenerateImageRequest, task_data: TaskData, data_queue: queue.Queue, task_temp_images: list, step_callback):
context.stop_processing = False
log.info(f'request: {pprint.pformat(get_printable_request(req))}')
log.info(f'task data: {pprint.pformat(task_data.dict())}')
log.info(f'request: {pprint.pformat(get_printable_request(req).replace("[","\["))}')
log.info(f'task data: {pprint.pformat(task_data.dict().replace("[","\["))}')
images = make_images_internal(req, task_data, data_queue, task_temp_images, step_callback)