@@ -63,7 +63,7 @@ function bind(i:number = 0) : Promise<tcp.Server> {
6363
6464// Sends a reply to the client, appending a newline.
6565var sendReply = ( message :string , connection :tcp . Connection ) : void => {
66- log . debug ( '%1: sending reply: %2' , connection . connectionId , message ) ;
66+ log . info ( '%1: sending reply: %2' , connection . connectionId , message ) ;
6767 connection . send ( arraybuffers . stringToArrayBuffer ( message + '\n' ) ) ;
6868}
6969
@@ -77,7 +77,7 @@ function serveConnection(connection: tcp.Connection): void {
7777
7878 const lineFeeder = new linefeeder . LineFeeder ( connection . dataFromSocketQueue ) ;
7979 var processCommand = ( command : string ) => {
80- log . debug ( '%1: received command: %2' , connection . connectionId , command ) ;
80+ log . info ( '%1: received command: %2' , connection . connectionId , command ) ;
8181
8282 let keepParsing = false ;
8383 var words = command . split ( ' ' ) ;
@@ -177,7 +177,7 @@ function get(
177177 } ) ;
178178
179179 lines . setSyncHandler ( ( signal :string ) : void => {
180- log . debug ( '%1: received signalling message: %2' ,
180+ log . info ( '%1: received signalling message: %2' ,
181181 connection . connectionId , signal ) ;
182182 try {
183183 socksToRtc . handleSignalFromPeer ( JSON . parse ( signal ) ) ;
@@ -199,10 +199,10 @@ function give(
199199 rtcToNet . start ( {
200200 allowNonUnicast : true
201201 } , bridge . best ( 'rtctonet' , pcConfig ) ) . then ( ( ) => {
202- log . info ( 'RtcToNet connected' ) ;
202+ log . info ( '%1: RtcToNet connected' , connection . connectionId ) ;
203203 connection . close ( ) ;
204204 } , ( e : Error ) => {
205- log . error ( '%1: failed to start rtcToNet: %1 ' ,
205+ log . error ( '%1: failed to start rtcToNet: %2 ' ,
206206 connection . connectionId , e . message ) ;
207207 connection . close ( ) ;
208208 } ) ;
@@ -213,7 +213,7 @@ function give(
213213 } ) ;
214214
215215 lines . setSyncHandler ( ( signal : string ) : void => {
216- log . debug ( '%1: received signalling message: %2' ,
216+ log . info ( '%1: received signalling message: %2' ,
217217 connection . connectionId , signal ) ;
218218 try {
219219 rtcToNet . handleSignalFromPeer ( JSON . parse ( signal ) ) ;
0 commit comments