diff options
| author | Ubuntu <github@matdoes.dev> | 2022-09-19 19:53:16 +0000 |
|---|---|---|
| committer | Ubuntu <github@matdoes.dev> | 2022-09-19 19:53:16 +0000 |
| commit | 14a6f9d9f89452b56102ffc5dc61125cc2b63aff (patch) | |
| tree | e73c03bb327422142dc27c3b163f49d44f948d0e /azalea-protocol/src/lib.rs | |
| parent | 4247945df13507fb07a4746263bb702d6fbe04cd (diff) | |
| download | azalea-drasl-14a6f9d9f89452b56102ffc5dc61125cc2b63aff.tar.xz | |
replace printlns with log
Diffstat (limited to 'azalea-protocol/src/lib.rs')
| -rwxr-xr-x | azalea-protocol/src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/azalea-protocol/src/lib.rs b/azalea-protocol/src/lib.rs index 1f864d45..9fff59f8 100755 --- a/azalea-protocol/src/lib.rs +++ b/azalea-protocol/src/lib.rs @@ -43,8 +43,10 @@ impl<'a> TryFrom<&'a str> for ServerAddress { #[cfg(feature = "connecting")] pub async fn connect(address: ServerAddress) -> Result<(), Box<dyn std::error::Error>> { + use log::debug; + let resolved_address = resolver::resolve_address(&address).await; - println!("Resolved address: {:?}", resolved_address); + debug!("Resolved address: {:?}", resolved_address); Ok(()) } |
