diff --git a/parsedmarc/cli.py b/parsedmarc/cli.py index f1f8ec42..64fca398 100644 --- a/parsedmarc/cli.py +++ b/parsedmarc/cli.py @@ -1179,9 +1179,7 @@ def process_reports(reports_): logger.setLevel(logging.DEBUG) if opts.log_file: try: - log_file = open(opts.log_file, "w") - log_file.close() - fh = logging.FileHandler(opts.log_file) + fh = logging.FileHandler(opts.log_file, "a") formatter = logging.Formatter( "%(asctime)s - " "%(levelname)s - [%(filename)s:%(lineno)d] - %(message)s"