From f15099ddf3d80fe79c3398e5fc1cce197709e0f6 Mon Sep 17 00:00:00 2001 From: Jared Jennings Date: Mon, 21 Mar 2016 22:13:41 -0400 Subject: [PATCH] compromise on multi-process logging (#13) --- darbrrb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/darbrrb.py b/darbrrb.py index 174fd40..46f4c6b 100644 --- a/darbrrb.py +++ b/darbrrb.py @@ -1242,7 +1242,7 @@ class TestWholeRestoreNineteenPlusSeven(TestWholeRestore): # dar expects its stdin and stdout to be a terminal so we will # make a log file for our messages rather than depend on # redirection - logfile = logging.FileHandler('darbrrb.log') + logfile = logging.FileHandler('darbrrb.log.{}'.format(os.getpid())) logfile.setFormatter(fmt) root_logger.addHandler(logfile) log = logging.getLogger('__main__'.format(os.getpid()))