mirror of
https://github.com/async-rs/async-std.git
synced 2025-03-28 20:16:41 +00:00
upgrade log, remove kv-log-macro
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
This commit is contained in:
parent
83a488b290
commit
b7e55762d8
3 changed files with 5 additions and 9 deletions
|
@ -27,7 +27,6 @@ default = [
|
||||||
"crossbeam-channel",
|
"crossbeam-channel",
|
||||||
"crossbeam-deque",
|
"crossbeam-deque",
|
||||||
"futures-timer",
|
"futures-timer",
|
||||||
"kv-log-macro",
|
|
||||||
"log",
|
"log",
|
||||||
"mio",
|
"mio",
|
||||||
"mio-uds",
|
"mio-uds",
|
||||||
|
@ -58,8 +57,7 @@ crossbeam-utils = { version = "0.7.0", optional = true }
|
||||||
futures-core = { version = "0.3.1", optional = true }
|
futures-core = { version = "0.3.1", optional = true }
|
||||||
futures-io = { version = "0.3.1", optional = true }
|
futures-io = { version = "0.3.1", optional = true }
|
||||||
futures-timer = { version = "2.0.2", optional = true }
|
futures-timer = { version = "2.0.2", optional = true }
|
||||||
kv-log-macro = { version = "1.0.4", optional = true }
|
log = { version = "0.4.10", features = ["kv_unstable"], optional = true }
|
||||||
log = { version = "0.4.8", features = ["kv_unstable"], optional = true }
|
|
||||||
memchr = { version = "2.2.1", optional = true }
|
memchr = { version = "2.2.1", optional = true }
|
||||||
mio = { version = "0.6.19", optional = true }
|
mio = { version = "0.6.19", optional = true }
|
||||||
mio-uds = { version = "0.6.7", optional = true }
|
mio-uds = { version = "0.6.7", optional = true }
|
||||||
|
|
|
@ -6,7 +6,6 @@ use std::task::{RawWaker, RawWakerVTable};
|
||||||
use std::thread;
|
use std::thread;
|
||||||
|
|
||||||
use crossbeam_utils::sync::Parker;
|
use crossbeam_utils::sync::Parker;
|
||||||
use kv_log_macro::trace;
|
|
||||||
use log::log_enabled;
|
use log::log_enabled;
|
||||||
|
|
||||||
use crate::task::{Context, Poll, Task, Waker};
|
use crate::task::{Context, Poll, Task, Waker};
|
||||||
|
@ -43,7 +42,7 @@ where
|
||||||
|
|
||||||
// Log this `block_on` operation.
|
// Log this `block_on` operation.
|
||||||
if log_enabled!(log::Level::Trace) {
|
if log_enabled!(log::Level::Trace) {
|
||||||
trace!("block_on", {
|
log::trace!("block_on", {
|
||||||
task_id: task.id().0,
|
task_id: task.id().0,
|
||||||
parent_task_id: Task::get_current(|t| t.id().0).unwrap_or(0),
|
parent_task_id: Task::get_current(|t| t.id().0).unwrap_or(0),
|
||||||
});
|
});
|
||||||
|
@ -59,7 +58,7 @@ where
|
||||||
defer! {
|
defer! {
|
||||||
if log_enabled!(log::Level::Trace) {
|
if log_enabled!(log::Level::Trace) {
|
||||||
Task::get_current(|t| {
|
Task::get_current(|t| {
|
||||||
trace!("completed", {
|
log::trace!("completed", {
|
||||||
task_id: t.id().0,
|
task_id: t.id().0,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
use kv_log_macro::trace;
|
|
||||||
use log::log_enabled;
|
use log::log_enabled;
|
||||||
use std::future::Future;
|
use std::future::Future;
|
||||||
|
|
||||||
|
@ -38,7 +37,7 @@ impl Builder {
|
||||||
|
|
||||||
// Log this `spawn` operation.
|
// Log this `spawn` operation.
|
||||||
if log_enabled!(log::Level::Trace) {
|
if log_enabled!(log::Level::Trace) {
|
||||||
trace!("spawn", {
|
log::trace!("spawn", {
|
||||||
task_id: task.id().0,
|
task_id: task.id().0,
|
||||||
parent_task_id: Task::get_current(|t| t.id().0).unwrap_or(0),
|
parent_task_id: Task::get_current(|t| t.id().0).unwrap_or(0),
|
||||||
});
|
});
|
||||||
|
@ -54,7 +53,7 @@ impl Builder {
|
||||||
defer! {
|
defer! {
|
||||||
if log_enabled!(log::Level::Trace) {
|
if log_enabled!(log::Level::Trace) {
|
||||||
Task::get_current(|t| {
|
Task::get_current(|t| {
|
||||||
trace!("completed", {
|
log::trace!("completed", {
|
||||||
task_id: t.id().0,
|
task_id: t.id().0,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue