Skip to content

Commit

Permalink
Change intproxy log to append (#2250)
Browse files Browse the repository at this point in the history
  • Loading branch information
aviramha authored Feb 19, 2024
1 parent bdfa74d commit ce7e55a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/+make-intproxy-log-appending.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Change intproxy log to append
2 changes: 1 addition & 1 deletion mirrord/cli/src/internal_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ pub(crate) async fn proxy(watch: drain::Watch) -> Result<()> {

if let Some(ref log_destination) = config.internal_proxy.log_destination {
let output_file = std::fs::OpenOptions::new()
.write(true)
.create(true)
.append(true)
.open(log_destination)
.map_err(CliError::OpenIntProxyLogFile)?;
let tracing_registry = tracing_subscriber::fmt().with_writer(output_file);
Expand Down

0 comments on commit ce7e55a

Please sign in to comment.