monero-harness: Use tracing

This commit is contained in:
Tobin C. Harding 2020-10-28 14:19:47 +11:00 committed by Lucas Soriano del Pino
parent 9384b0cf3c
commit be37725303
2 changed files with 2 additions and 9 deletions

View File

@ -6,12 +6,7 @@ use crate::{
use anyhow::Result; use anyhow::Result;
use reqwest::Url; use reqwest::Url;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use tracing::debug;
// #[cfg(not(test))]
// use tracing::debug;
//
// #[cfg(test)]
use std::eprintln as debug;
/// RPC client for monerod and monero-wallet-rpc. /// RPC client for monerod and monero-wallet-rpc.
#[derive(Debug, Clone)] #[derive(Debug, Clone)]

View File

@ -3,9 +3,7 @@ use crate::rpc::{Request, Response};
use anyhow::Result; use anyhow::Result;
use reqwest::Url; use reqwest::Url;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use tracing::debug;
// TODO: Either use println! directly or import tracing also?
use std::println as debug;
/// JSON RPC client for monero-wallet-rpc. /// JSON RPC client for monero-wallet-rpc.
#[derive(Debug)] #[derive(Debug)]