Skip to content

Commit

Permalink
refactor(log): replace log with tracing
Browse files Browse the repository at this point in the history
Signed-off-by: DragonBillow <[email protected]>
  • Loading branch information
cathaysia committed Mar 3, 2024
1 parent 8e1f254 commit b5e5d7e
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ serde = { version = "1.0.188", features = ["derive", "alloc", "rc"]
serde_json = "1.0.106"
toml = "0.7.8"
tokio = { version = "1.32.0", features = ["full"] }
log = "0.4.20"
tracing = "0.1.37"
tracing-subscriber = { version = "0.3.17", features = ["env-filter", "std"] }
semver = "1.0.18"
Expand Down
2 changes: 1 addition & 1 deletion src/dump.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use futures::future::join_all;
use log::*;
use semver::Version;
use tracing::*;

use crate::{
config::Config,
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ pub mod request;
pub mod utils;

use data_struct::IRawGalleryExtension;
use log::*;
use openvsx::apis::configuration::Configuration;
use semver::Version;
use std::{str::FromStr, sync::Arc};
use tracing::*;
use tracing_subscriber::{fmt, prelude::*, util::SubscriberInitExt, EnvFilter};

use futures::future::join_all;
Expand Down
2 changes: 1 addition & 1 deletion src/openvsx_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use std::str::FromStr;

use log::*;
use tracing::*;

use openvsx::{
apis::{configuration::Configuration, registry_api_api},
Expand Down
2 changes: 1 addition & 1 deletion src/request/http_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::{
};

use super::Query;
use log::*;
use tracing::*;

#[derive(Debug, Clone)]
pub struct HttpClient {
Expand Down
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mod cacher;
pub use cacher::*;

use crate::error::Error;
use log::*;
use tracing::*;

pub async fn get_sha256(url: &str) -> anyhow::Result<String> {
trace!("get sha256 of {url}");
Expand Down
2 changes: 1 addition & 1 deletion src/utils/cacher.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use log::*;
use redb::{ReadableTable, TableDefinition};
use std::{path::PathBuf, sync::LazyLock};
use tracing::*;

use crate::error::Error;

Expand Down

0 comments on commit b5e5d7e

Please sign in to comment.