Skip to content

Commit bf57e81

Browse files
authored
Log to stderr not to a file (#74)
1 parent dcfa67e commit bf57e81

File tree

4 files changed

+4
-20
lines changed

4 files changed

+4
-20
lines changed

Cargo.lock

Lines changed: 3 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ which stores how far through the `state_groups` table the compressor has scanned
2121
The tool can be run manually when you are running out of space, or be scheduled to run
2222
periodically.
2323

24-
The output from the auto_compressor will be sent to `auto_compressor.log` (in the directory
25-
that the compressor is run from).
26-
2724
## Building
2825

2926
This tool requires `cargo` to be installed. See https://www.rust-lang.org/tools/install

auto_compressor/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jemallocator = "0.3.2"
1515
rand = "0.8.0"
1616
serial_test = "0.5.1"
1717
synapse_compress_state = { path = "../", features = ["no-progress-bars"] }
18-
env_logger = { version = "0.9.0", git = "https://github.com/TilCreator/env_logger", branch = "fix_pipe" }
18+
env_logger = "0.9.0"
1919
log = "0.4.14"
2020
log-panics = "2.0.0"
2121
anyhow = "1.0.42"

auto_compressor/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ fn main() {
3737

3838
if env::var("RUST_LOG").is_err() {
3939
let mut log_builder = env_logger::builder();
40-
log_builder.target(env_logger::Target::Pipe(Box::new(log_file)));
4140
// Ensure panics still come through
4241
log_builder.filter_module("panic", LevelFilter::Error);
4342
// Only output errors from the synapse_compress state library

0 commit comments

Comments
 (0)