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 | |
| parent | b79ae025f08935044c621259d4e0c4bb72bbcd7f (diff) | |
| download | azalea-drasl-9633508a3a31a70c657329fdeca0050b7082959e.tar.xz | |
replace log with tracing
Diffstat (limited to 'azalea')
| -rw-r--r-- | azalea/Cargo.toml | 2 | ||||
| -rw-r--r-- | azalea/src/bot.rs | 2 | ||||
| -rw-r--r-- | azalea/src/pathfinder/astar.rs | 2 | ||||
| -rw-r--r-- | azalea/src/pathfinder/mod.rs | 2 | ||||
| -rw-r--r-- | azalea/src/swarm/mod.rs | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/azalea/Cargo.toml b/azalea/Cargo.toml index c3133d13..c411aaae 100644 --- a/azalea/Cargo.toml +++ b/azalea/Cargo.toml @@ -31,7 +31,7 @@ bevy_tasks = { version = "0.12.0", features = ["multi-threaded"] } derive_more = { version = "0.99.17", features = ["deref", "deref_mut"] } futures = "0.3.29" futures-lite = "2.0.1" -log = "0.4.20" +tracing = "0.1.40" nohash-hasher = "0.2.0" num-traits = "0.2.17" parking_lot = { version = "^0.12.1", features = ["deadlock_detection"] } diff --git a/azalea/src/bot.rs b/azalea/src/bot.rs index 4fe10e74..2281deaf 100644 --- a/azalea/src/bot.rs +++ b/azalea/src/bot.rs @@ -22,8 +22,8 @@ use bevy_app::{FixedUpdate, Update}; use bevy_ecs::prelude::Event; use bevy_ecs::schedule::IntoSystemConfigs; use futures_lite::Future; -use log::trace; use std::f64::consts::PI; +use tracing::trace; use crate::pathfinder::PathfinderPlugin; diff --git a/azalea/src/pathfinder/astar.rs b/azalea/src/pathfinder/astar.rs index 98525e03..163189af 100644 --- a/azalea/src/pathfinder/astar.rs +++ b/azalea/src/pathfinder/astar.rs @@ -5,9 +5,9 @@ use std::{ time::{Duration, Instant}, }; -use log::{debug, trace, warn}; use priority_queue::PriorityQueue; use rustc_hash::FxHashMap; +use tracing::{debug, trace, warn}; pub struct Path<P, M> where diff --git a/azalea/src/pathfinder/mod.rs b/azalea/src/pathfinder/mod.rs index c7f05eae..db508004 100644 --- a/azalea/src/pathfinder/mod.rs +++ b/azalea/src/pathfinder/mod.rs @@ -41,11 +41,11 @@ use bevy_ecs::schedule::IntoSystemConfigs; use bevy_ecs::system::{Local, ResMut}; use bevy_tasks::{AsyncComputeTaskPool, Task}; use futures_lite::future; -use log::{debug, error, info, trace, warn}; use std::collections::VecDeque; use std::sync::atomic::{self, AtomicUsize}; use std::sync::Arc; use std::time::{Duration, Instant}; +use tracing::{debug, error, info, trace, warn}; use self::mining::MiningCache; use self::moves::{ExecuteCtx, IsReachedCtx, SuccessorsFn}; diff --git a/azalea/src/swarm/mod.rs b/azalea/src/swarm/mod.rs index 585e2608..05aabe68 100644 --- a/azalea/src/swarm/mod.rs +++ b/azalea/src/swarm/mod.rs @@ -16,11 +16,11 @@ use azalea_world::InstanceContainer; use bevy_app::{App, PluginGroup, PluginGroupBuilder, Plugins}; use bevy_ecs::{component::Component, entity::Entity, system::Resource, world::World}; use futures::future::{join_all, BoxFuture}; -use log::error; use parking_lot::{Mutex, RwLock}; use std::{collections::HashMap, future::Future, net::SocketAddr, sync::Arc, time::Duration}; use thiserror::Error; use tokio::sync::mpsc; +use tracing::error; use crate::{BoxHandleFn, DefaultBotPlugins, HandleFn, NoState}; |
