Do not use UTF-8 in net_trace!().
This may interact badly with other tooling.
This commit is contained in:
parent
dc8809288f
commit
f7bc7fe364
|
@ -490,10 +490,10 @@ impl<'a> TcpSocket<'a> {
|
|||
fn set_state(&mut self, state: State) {
|
||||
if self.state != state {
|
||||
if self.remote_endpoint.addr.is_unspecified() {
|
||||
net_trace!("tcp:{}: state={}→{}",
|
||||
net_trace!("tcp:{}: state={}=>{}",
|
||||
self.local_endpoint, self.state, state);
|
||||
} else {
|
||||
net_trace!("tcp:{}:{}: state={}→{}",
|
||||
net_trace!("tcp:{}:{}: state={}=>{}",
|
||||
self.local_endpoint, self.remote_endpoint, self.state, state);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue