Skip to content

Commit

Permalink
No ansi in my log files please
Browse files Browse the repository at this point in the history
  • Loading branch information
ThetaSinner committed Jul 17, 2024
1 parent 3c29a2a commit 8bff5d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/trycp_server/src/startup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ pub fn startup(id: String, log_level: Option<String>) -> Result<(), Error> {
.arg("--piped")
.arg("-c")
.arg(CONDUCTOR_CONFIG_FILENAME)
// Disable ANSI color codes in Holochain output, which should be set any time the output
// is being written to a file.
// See https://docs.rs/tracing-subscriber/0.3.18/tracing_subscriber/fmt/struct.Layer.html#method.with_ansi
.env(" NO_COLOR", "1")
.env("RUST_BACKTRACE", "full")
.env("RUST_LOG", rust_log)
.stdin(Stdio::piped())
Expand Down

0 comments on commit 8bff5d0

Please sign in to comment.