mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-22 00:59:07 -05:00
improvement: log connection details at INFO level
This commit is contained in:
parent
559541b160
commit
6012b57e95
|
@ -600,12 +600,12 @@ async fn nostr_server(
|
||||||
// and how many it received from queries.
|
// and how many it received from queries.
|
||||||
let mut client_published_event_count: usize = 0;
|
let mut client_published_event_count: usize = 0;
|
||||||
let mut client_received_event_count: usize = 0;
|
let mut client_received_event_count: usize = 0;
|
||||||
debug!("new client connection (cid: {}, ip: {:?})", cid, conn.ip());
|
info!("new client connection (cid: {}, ip: {:?})", cid, conn.ip());
|
||||||
let origin = client_info.origin.unwrap_or_else(|| "<unspecified>".into());
|
let origin = client_info.origin.unwrap_or_else(|| "<unspecified>".into());
|
||||||
let user_agent = client_info
|
let user_agent = client_info
|
||||||
.user_agent
|
.user_agent
|
||||||
.unwrap_or_else(|| "<unspecified>".into());
|
.unwrap_or_else(|| "<unspecified>".into());
|
||||||
debug!(
|
info!(
|
||||||
"cid: {}, origin: {:?}, user-agent: {:?}",
|
"cid: {}, origin: {:?}, user-agent: {:?}",
|
||||||
cid, origin, user_agent
|
cid, origin, user_agent
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user