Log to stderr not to a file

This commit is contained in:
Azrenbeth
2021-09-28 14:33:18 +01:00
parent dcfa67ea98
commit fa42201e82
3 changed files with 4 additions and 17 deletions

View File

@@ -15,7 +15,7 @@ jemallocator = "0.3.2"
rand = "0.8.0"
serial_test = "0.5.1"
synapse_compress_state = { path = "../", features = ["no-progress-bars"] }
env_logger = { version = "0.9.0", git = "https://github.com/TilCreator/env_logger", branch = "fix_pipe" }
env_logger = "0.9.0"
log = "0.4.14"
log-panics = "2.0.0"
anyhow = "1.0.42"

View File

@@ -37,7 +37,6 @@ fn main() {
if env::var("RUST_LOG").is_err() {
let mut log_builder = env_logger::builder();
log_builder.target(env_logger::Target::Pipe(Box::new(log_file)));
// Ensure panics still come through
log_builder.filter_module("panic", LevelFilter::Error);
// Only output errors from the synapse_compress state library