2 Commits

Author SHA1 Message Date
Azrenbeth
987c5ac81f Remove reference to log file 2021-09-28 14:36:25 +01:00
Azrenbeth
fa42201e82 Log to stderr not to a file 2021-09-28 14:35:47 +01:00
4 changed files with 4 additions and 20 deletions

18
Cargo.lock generated
View File

@@ -60,7 +60,7 @@ version = "0.1.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"clap", "clap",
"env_logger 0.9.0 (git+https://github.com/TilCreator/env_logger?branch=fix_pipe)", "env_logger",
"jemallocator", "jemallocator",
"log", "log",
"log-panics", "log-panics",
@@ -145,7 +145,7 @@ name = "compressor_integration_tests"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"auto_compressor", "auto_compressor",
"env_logger 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", "env_logger",
"log", "log",
"openssl", "openssl",
"postgres", "postgres",
@@ -267,18 +267,6 @@ dependencies = [
"termcolor", "termcolor",
] ]
[[package]]
name = "env_logger"
version = "0.9.0"
source = "git+https://github.com/TilCreator/env_logger?branch=fix_pipe#3d09e0d824d9301cf1c0d4a9f148f8cfeb216329"
dependencies = [
"atty",
"humantime",
"log",
"regex",
"termcolor",
]
[[package]] [[package]]
name = "fallible-iterator" name = "fallible-iterator"
version = "0.2.0" version = "0.2.0"
@@ -1139,7 +1127,7 @@ name = "synapse_compress_state"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"clap", "clap",
"env_logger 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", "env_logger",
"indicatif", "indicatif",
"jemallocator", "jemallocator",
"log", "log",

View File

@@ -21,9 +21,6 @@ which stores how far through the `state_groups` table the compressor has scanned
The tool can be run manually when you are running out of space, or be scheduled to run The tool can be run manually when you are running out of space, or be scheduled to run
periodically. periodically.
The output from the auto_compressor will be sent to `auto_compressor.log` (in the directory
that the compressor is run from).
## Building ## Building
This tool requires `cargo` to be installed. See https://www.rust-lang.org/tools/install This tool requires `cargo` to be installed. See https://www.rust-lang.org/tools/install

View File

@@ -15,7 +15,7 @@ jemallocator = "0.3.2"
rand = "0.8.0" rand = "0.8.0"
serial_test = "0.5.1" serial_test = "0.5.1"
synapse_compress_state = { path = "../", features = ["no-progress-bars"] } 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 = "0.4.14"
log-panics = "2.0.0" log-panics = "2.0.0"
anyhow = "1.0.42" anyhow = "1.0.42"

View File

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