Skip to content

Commit

Permalink
Do not use UTF-8 in net_trace!().
Browse files Browse the repository at this point in the history
This may interact badly with other tooling.
whitequark committed Jan 14, 2017
1 parent 1cd8842 commit a5c05f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/socket/tcp.rs
Original file line number Diff line number Diff line change
@@ -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);
}
}

0 comments on commit a5c05f2

Please sign in to comment.