Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix generate_log_config script (#8952)
Browse files Browse the repository at this point in the history
It used to write an empty file if you gave it a -o arg.
  • Loading branch information
richvdh committed Dec 16, 2020
1 parent be2db93 commit 3ad699c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/8952.misc
@@ -0,0 +1 @@
Fix bug in `generate_log_config` script which made it write empty files.
4 changes: 3 additions & 1 deletion scripts/generate_log_config
Expand Up @@ -40,4 +40,6 @@ if __name__ == "__main__":
)

args = parser.parse_args()
args.output_file.write(DEFAULT_LOG_CONFIG.substitute(log_file=args.log_file))
out = args.output_file
out.write(DEFAULT_LOG_CONFIG.substitute(log_file=args.log_file))
out.flush()

0 comments on commit 3ad699c

Please sign in to comment.