Skip to content

Commit 0fcbafa

Browse files
Merge pull request #43 from Kajmany/main
Replace `simplelog` with `tracing` and `tracing-subscriber`
2 parents 2ca0f4a + 2e9bf58 commit 0fcbafa

File tree

24 files changed

+182
-105
lines changed

24 files changed

+182
-105
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,22 @@ edition = "2021"
66
[dependencies]
77
anyhow = "1.0.82"
88
clap = { version = "4.5.4", features = ["unicode", "env", "derive"] }
9-
clap-verbosity-flag = "2.2.0"
109
itertools = "0.12.1"
1110
glob = "0.3.1"
1211
serde = { version = "1.0", features = ["derive"] }
1312
serde_yml = "0.0.12"
1413
serde_nested_with = "0.2.5"
15-
simplelog = { version = "0.12.2", features = ["paris"] }
1614
fully_pub = "0.1.4"
1715
void = "1"
1816
futures = "0.3.30"
1917
figment = { version = "0.10.19", features = ["env", "yaml", "test"] }
2018
zip = { version = "2.2.2", default-features = false, features = ["deflate"] }
2119

20+
# tracing
21+
tracing = { version = "0.1.41", features = ["attributes"] }
22+
tracing-subscriber = { version = "0.3.19", features = ["chrono", "env-filter"] }
23+
owo-colors = "4.2.0"
24+
2225
# kubernetes:
2326
kube = { version = "0.99.0", features = ["runtime", "derive"] }
2427
k8s-openapi = { version = "0.24.0", features = ["latest"] }

src/access_handlers/docker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ use bollard::{
66
};
77
use futures::{StreamExt, TryStreamExt};
88
use itertools::Itertools;
9-
use simplelog::*;
109
use tokio;
10+
use tracing::{debug, error, info, trace, warn};
1111

1212
use crate::clients::docker;
1313
use crate::configparser::{get_config, get_profile_config};

src/access_handlers/kube.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use k8s_openapi::api::{
44
};
55
use k8s_openapi::serde_json::{from_value, json, to_string};
66
use kube;
7-
use simplelog::*;
87
use tokio;
8+
use tracing::{debug, error, info, trace, warn};
99

1010
use crate::clients::kube_client;
1111
use crate::configparser::{config, get_config, get_profile_config};

src/access_handlers/s3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use anyhow::{anyhow, bail, Context, Error, Result};
22
use s3;
3-
use simplelog::*;
43
use tokio;
4+
use tracing::{debug, error, info, trace, warn};
55

66
use crate::clients::{bucket_client, bucket_client_anonymous};
77
use crate::configparser::{

0 commit comments

Comments
 (0)