fixed regression in logging when using multiprocessing