Skip to content

Commit

Permalink
fixup! Update all print statments to a corresponding method in log crate
Browse files Browse the repository at this point in the history
  • Loading branch information
Armin Sabouri committed Nov 20, 2022
1 parent 37430fd commit daeb0da
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/http.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use std::net::SocketAddr;
use std::path::Path;

use log::info;
use bip78::receiver::*;
use hyper::service::{make_service_fn, service_fn};
use hyper::{Body, Method, Request, Response, Server, StatusCode};
use log::info;
use qrcode_generator::QrCodeEcc;

use crate::lsp::Quote;
Expand Down
6 changes: 2 additions & 4 deletions src/lnd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use bitcoin::consensus::Decodable;
use bitcoin::psbt::PartiallySignedTransaction;
use bitcoin::{Address, Amount};
use ln_types::P2PAddress;
use log::{warn, info};
use log::{info, warn};
use tokio::sync::Mutex as AsyncMutex;
use tonic_lnd::lnrpc::funding_transition_msg::Trigger;
use tonic_lnd::lnrpc::{
Expand Down Expand Up @@ -47,9 +47,7 @@ impl LndClient {
if version < (0, 14, 0) {
return Err(LndError::LNDTooOld(version_str.clone()));
} else if version < (0, 14, 2) {
warn!(
"WARNING: LND older than 0.14.2. Using with an empty LND wallet is impossible."
);
warn!("WARNING: LND older than 0.14.2. Using with an empty LND wallet is impossible.");
}

Ok(Self(Arc::new(AsyncMutex::new(client))))
Expand Down
2 changes: 1 addition & 1 deletion src/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use bitcoin::consensus::Encodable;
use bitcoin::psbt::PartiallySignedTransaction;
use bitcoin::{Address, Amount, Script, TxOut};
use ln_types::P2PAddress;
use log::{info, error};
use log::{error, info};
use tonic_lnd::lnrpc::OpenChannelRequest;
use url::Url;

Expand Down
3 changes: 1 addition & 2 deletions tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ mod integration {
use hyper::client::HttpConnector;
use hyper_tls::HttpsConnector;
use ln_types::P2PAddress;
use log::{debug, error};
use nolooking::http;
use nolooking::lnd::LndClient;
use nolooking::scheduler::{ChannelBatch, ScheduledChannel, Scheduler};
use tempfile::tempdir;
use tokio_native_tls::native_tls;
use tonic_lnd::lnrpc::{ConnectPeerRequest, LightningAddress};
use log::{warn, info, error, debug};


#[tokio::test]
async fn test() -> Result<(), Box<dyn std::error::Error>> {
Expand Down

0 comments on commit daeb0da

Please sign in to comment.