Skip to content

Commit 12a5e8e

Browse files
authored
fixed missing log prefix for the first request (#571)
1 parent 4c1fee5 commit 12a5e8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export class Server extends EventEmitter {
184184

185185
log(connectionId: unknown, str: string): void {
186186
if (this.verbose) {
187-
const logPrefix = connectionId ? `${String(connectionId)} | ` : '';
187+
const logPrefix = connectionId != null ? `${String(connectionId)} | ` : '';
188188
// eslint-disable-next-line no-console
189189
console.log(`ProxyServer[${this.port}]: ${logPrefix}${str}`);
190190
}

0 commit comments

Comments
 (0)