Skip to content

Commit 08a6257

Browse files
committed
log commands and responses at INFO, so they are there out of the box
1 parent f539db6 commit 08a6257

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/zork/freedom-module.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function bind(i:number = 0) : Promise<tcp.Server> {
6363

6464
// Sends a reply to the client, appending a newline.
6565
var 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));
@@ -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

Comments
 (0)