Explorar o código

Do not use UTF-8 in net_trace!().

This may interact badly with other tooling.
whitequark %!s(int64=8) %!d(string=hai) anos
pai
achega
a5c05f2f8e
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/socket/tcp.rs

+ 2 - 2
src/socket/tcp.rs

@@ -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);
             }
         }