File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -1777,10 +1777,9 @@ class QuicSession extends EventEmitter {
1777
1777
stream [ kStreamReset ] ( code ) ;
1778
1778
}
1779
1779
1780
- [ kInspect ] ( ) {
1781
- // TODO(@jasnell): A proper custom inspect implementation
1780
+ [ kInspect ] ( depth , options ) {
1782
1781
const state = this [ kInternalState ] ;
1783
- const obj = {
1782
+ return customInspect ( this , {
1784
1783
alpn : state . alpn ,
1785
1784
cipher : this . cipher ,
1786
1785
closing : this . closing ,
@@ -1790,12 +1789,7 @@ class QuicSession extends EventEmitter {
1790
1789
maxStreams : this . maxStreams ,
1791
1790
servername : this . servername ,
1792
1791
streams : state . streams . size ,
1793
- stats : {
1794
- handshakeAck : this . handshakeAckHistogram ,
1795
- handshakeContinuation : this . handshakeContinuationHistogram ,
1796
- }
1797
- } ;
1798
- return `${ this . constructor . name } ${ util . format ( obj ) } ` ;
1792
+ } , depth , options ) ;
1799
1793
}
1800
1794
1801
1795
[ kSetSocket ] ( socket ) {
You can’t perform that action at this time.
0 commit comments