@@ -47,23 +47,23 @@ export class Connection {
47
47
private traceSend ( packet : proto . ClientPacket ) {
48
48
this . timestamps . push ( new Date ( ) ) ;
49
49
if ( packet . type === 'greeting' ) {
50
- console . debug ( `C>S` , packet ) ;
50
+ console . debug ( `[CXXRTL] C>S` , packet ) ;
51
51
} else if ( packet . type === 'command' ) {
52
- console . debug ( `C>S#${ this . sendIndex ++ } ` , packet ) ;
52
+ console . debug ( `[CXXRTL] C>S#${ this . sendIndex ++ } ` , packet ) ;
53
53
}
54
54
}
55
55
56
56
private traceRecv ( packet : proto . ServerPacket ) {
57
57
if ( packet . type === 'greeting' ) {
58
- console . debug ( `S>C` , packet ) ;
58
+ console . debug ( `[CXXRTL] S>C` , packet ) ;
59
59
} else if ( packet . type === 'response' ) {
60
60
const elapsed = new Date ( ) . getTime ( ) - this . timestamps . shift ( ) ! . getTime ( ) ;
61
- console . debug ( `S>C#${ this . recvIndex ++ } ` , packet , `(${ elapsed } ms)` ) ;
61
+ console . debug ( `[CXXRTL] S>C#${ this . recvIndex ++ } ` , packet , `(${ elapsed } ms)` ) ;
62
62
} else if ( packet . type === 'error' ) {
63
63
this . timestamps . shift ( ) ;
64
- console . error ( `S>C#${ this . recvIndex ++ } ` , packet ) ;
64
+ console . error ( `[CXXRTL] S>C#${ this . recvIndex ++ } ` , packet ) ;
65
65
} else if ( packet . type === 'event' ) {
66
- console . debug ( `S>C` , packet ) ;
66
+ console . debug ( `[CXXRTL] S>C` , packet ) ;
67
67
}
68
68
}
69
69
0 commit comments