Skip to content

Commit

Permalink
Bump to 0.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
cpg314 committed Jun 24, 2024
1 parent ed7c62d commit 66687cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ch-grafana-cache"
version = "0.1.5"
version = "0.1.6"
edition = "2021"

[dependencies]
Expand All @@ -22,4 +22,4 @@ serde_yaml = "0.9.34"
thiserror = "1.0.61"
tokio = { version = "1.38.0", features = ["full"] }
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["json"] }
tracing-subscriber = { version = "0.3.18", features = ["json", "env-filter"] }
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ fn print_sql(sql: &str, theme: Option<&String>) -> anyhow::Result<()> {
async fn main_impl() -> anyhow::Result<()> {
let args = Flags::parse();

let fmt = tracing_subscriber::fmt().with_writer(std::io::stderr);
let fmt = tracing_subscriber::fmt()
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
.with_writer(std::io::stderr);
if args.log_json {
fmt.json().init();
} else {
Expand Down

0 comments on commit 66687cc

Please sign in to comment.