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 reqwest::Url;
use serde::{Deserialize, Serialize};
// #[cfg(not(test))]
// use tracing::debug;
//
// #[cfg(test)]
use std::eprintln as debug;
use tracing::debug;
/// RPC client for monerod and monero-wallet-rpc.
#[derive(Debug, Clone)]

View File

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