This can be written as `logging.debug('TASK-INFO: %s', json.dumps(task_info))`, which is generally easier to read, I think.