File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ cfg_server! {
30
30
pub ( crate ) trait Http1Transaction {
31
31
type Incoming ;
32
32
type Outgoing : Default ;
33
+ #[ cfg( feature = "tracing" ) ]
33
34
const LOG : & ' static str ;
34
35
fn parse ( bytes : & mut BytesMut , ctx : ParseContext < ' _ > ) -> ParseResult < Self :: Incoming > ;
35
36
fn encode ( enc : Encode < ' _ , Self :: Outgoing > , dst : & mut Vec < u8 > ) -> crate :: Result < Encoder > ;
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ pub(crate) enum Server {}
104
104
impl Http1Transaction for Server {
105
105
type Incoming = RequestLine ;
106
106
type Outgoing = StatusCode ;
107
+ #[ cfg( feature = "tracing" ) ]
107
108
const LOG : & ' static str = "{role=server}" ;
108
109
109
110
fn parse ( buf : & mut BytesMut , ctx : ParseContext < ' _ > ) -> ParseResult < RequestLine > {
@@ -964,6 +965,7 @@ trait HeaderNameWriter {
964
965
impl Http1Transaction for Client {
965
966
type Incoming = StatusCode ;
966
967
type Outgoing = RequestLine ;
968
+ #[ cfg( feature = "tracing" ) ]
967
969
const LOG : & ' static str = "{role=client}" ;
968
970
969
971
fn parse ( buf : & mut BytesMut , ctx : ParseContext < ' _ > ) -> ParseResult < StatusCode > {
You can’t perform that action at this time.
0 commit comments