diff options
| author | mat <git@matdoes.dev> | 2023-11-18 00:58:47 -0600 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-11-18 00:58:47 -0600 |
| commit | 9633508a3a31a70c657329fdeca0050b7082959e (patch) | |
| tree | 9973ed4e60a0bd2b77413a195b2a166854f04d43 /azalea-client/src | |
| parent | b79ae025f08935044c621259d4e0c4bb72bbcd7f (diff) | |
| download | azalea-drasl-9633508a3a31a70c657329fdeca0050b7082959e.tar.xz | |
replace log with tracing
Diffstat (limited to 'azalea-client/src')
| -rwxr-xr-x | azalea-client/src/account.rs | 2 | ||||
| -rw-r--r-- | azalea-client/src/client.rs | 4 | ||||
| -rw-r--r-- | azalea-client/src/interact.rs | 2 | ||||
| -rw-r--r-- | azalea-client/src/inventory.rs | 2 | ||||
| -rw-r--r-- | azalea-client/src/local_player.rs | 2 | ||||
| -rw-r--r-- | azalea-client/src/packet_handling/configuration.rs | 2 | ||||
| -rw-r--r-- | azalea-client/src/packet_handling/game.rs | 2 | ||||
| -rw-r--r-- | azalea-client/src/raw_connection.rs | 2 |
8 files changed, 9 insertions, 9 deletions
diff --git a/azalea-client/src/account.rs b/azalea-client/src/account.rs index d045cc72..0be4146b 100755 --- a/azalea-client/src/account.rs +++ b/azalea-client/src/account.rs @@ -145,7 +145,7 @@ impl Account { let client = reqwest::Client::new(); if msa.is_expired() { - log::trace!("refreshing Microsoft auth token"); + tracing::trace!("refreshing Microsoft auth token"); msa = azalea_auth::refresh_ms_auth_token(&client, &msa.data.refresh_token).await?; } diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs index 13d180fe..96e4eb1c 100644 --- a/azalea-client/src/client.rs +++ b/azalea-client/src/client.rs @@ -65,7 +65,6 @@ use bevy_ecs::{ }; use bevy_time::{Fixed, Time, TimePlugin}; use derive_more::Deref; -use log::{debug, error}; use parking_lot::{Mutex, RwLock}; use std::{ collections::HashMap, fmt::Debug, io, net::SocketAddr, ops::Deref, sync::Arc, time::Duration, @@ -75,6 +74,7 @@ use tokio::{ sync::{broadcast, mpsc}, time, }; +use tracing::{debug, error}; use uuid::Uuid; /// `Client` has the things that a user interacting with the library will want. @@ -518,7 +518,7 @@ impl Client { } if self.logged_in() { - log::debug!( + tracing::debug!( "Sending client information (already logged in): {:?}", client_information ); diff --git a/azalea-client/src/interact.rs b/azalea-client/src/interact.rs index eaced255..64cbd7be 100644 --- a/azalea-client/src/interact.rs +++ b/azalea-client/src/interact.rs @@ -29,7 +29,7 @@ use bevy_ecs::{ system::{Commands, Query, Res}, }; use derive_more::{Deref, DerefMut}; -use log::warn; +use tracing::warn; use crate::{ attack::handle_attack_event, diff --git a/azalea-client/src/inventory.rs b/azalea-client/src/inventory.rs index 356e0c0b..e1ac9dd4 100644 --- a/azalea-client/src/inventory.rs +++ b/azalea-client/src/inventory.rs @@ -23,7 +23,7 @@ use bevy_ecs::{ schedule::{IntoSystemConfigs, SystemSet}, system::Query, }; -use log::warn; +use tracing::warn; use crate::{ local_player::{handle_send_packet_event, PlayerAbilities, SendPacketEvent}, diff --git a/azalea-client/src/local_player.rs b/azalea-client/src/local_player.rs index ac0e4ea1..db0a14f1 100644 --- a/azalea-client/src/local_player.rs +++ b/azalea-client/src/local_player.rs @@ -12,10 +12,10 @@ use bevy_ecs::{ system::Query, }; use derive_more::{Deref, DerefMut}; -use log::error; use parking_lot::RwLock; use thiserror::Error; use tokio::sync::mpsc; +use tracing::error; use uuid::Uuid; use crate::{ diff --git a/azalea-client/src/packet_handling/configuration.rs b/azalea-client/src/packet_handling/configuration.rs index b61b2e7e..b82ed76f 100644 --- a/azalea-client/src/packet_handling/configuration.rs +++ b/azalea-client/src/packet_handling/configuration.rs @@ -12,8 +12,8 @@ use azalea_protocol::read::deserialize_packet; use azalea_world::Instance; use bevy_ecs::prelude::*; use bevy_ecs::system::SystemState; -use log::{debug, error, warn}; use parking_lot::RwLock; +use tracing::{debug, error, warn}; use crate::client::InConfigurationState; use crate::disconnect::DisconnectEvent; diff --git a/azalea-client/src/packet_handling/game.rs b/azalea-client/src/packet_handling/game.rs index dad4a555..dba0e070 100644 --- a/azalea-client/src/packet_handling/game.rs +++ b/azalea-client/src/packet_handling/game.rs @@ -29,8 +29,8 @@ use azalea_protocol::{ }; use azalea_world::{Instance, InstanceContainer, InstanceName, MinecraftEntityId, PartialInstance}; use bevy_ecs::{prelude::*, system::SystemState}; -use log::{debug, error, trace, warn}; use parking_lot::RwLock; +use tracing::{debug, error, trace, warn}; use crate::{ chat::{ChatPacket, ChatReceivedEvent}, diff --git a/azalea-client/src/raw_connection.rs b/azalea-client/src/raw_connection.rs index 0df13a60..e2daaba2 100644 --- a/azalea-client/src/raw_connection.rs +++ b/azalea-client/src/raw_connection.rs @@ -8,10 +8,10 @@ use azalea_protocol::{ write::serialize_packet, }; use bevy_ecs::prelude::*; -use log::error; use parking_lot::Mutex; use thiserror::Error; use tokio::sync::mpsc; +use tracing::error; /// A component for clients that can read and write packets to the server. This /// works with raw bytes, so you'll have to serialize/deserialize packets |
