mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-14 14:21:02 +00:00
cargo_wrapper: Write to log with line-buffering
So we get log output while cargo is running, not just when it completes Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1038>
This commit is contained in:
parent
a0dbb94e01
commit
a5a3c44951
1 changed files with 3 additions and 3 deletions
|
@ -67,9 +67,9 @@ def generate_depfile_for(fpath):
|
|||
|
||||
if __name__ == "__main__":
|
||||
opts = PARSER.parse_args()
|
||||
|
||||
logfile = open(opts.root_dir / 'meson-logs' /
|
||||
f'{opts.src_dir.name}-cargo-wrapper.log', 'w')
|
||||
logdir = opts.root_dir / 'meson-logs'
|
||||
logfile_path = logdir / f'{opts.src_dir.name}-cargo-wrapper.log'
|
||||
logfile = open(logfile_path, mode='w', buffering=1)
|
||||
|
||||
print(opts, file=logfile)
|
||||
cargo_target_dir = opts.build_dir / 'target'
|
||||
|
|
Loading…
Reference in a new issue