Skip to content

Commit

Permalink
compromise on multi-process logging (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredjennings committed Mar 22, 2016
1 parent 9ac7873 commit f15099d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion darbrrb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down

0 comments on commit f15099d

Please sign in to comment.