mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-24 21:59:25 -05:00
Fix generate_log_config script (#8952)
It used to write an empty file if you gave it a -o arg.
This commit is contained in:
parent
be2db93b3c
commit
3ad699cc65
1
changelog.d/8952.misc
Normal file
1
changelog.d/8952.misc
Normal file
@ -0,0 +1 @@
|
||||
Fix bug in `generate_log_config` script which made it write empty files.
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user