Skip to content

Commit

Permalink
fixed missing log prefix for the first request (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
peonone authored Jan 24, 2025
1 parent 4c1fee5 commit 12a5e8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export class Server extends EventEmitter {

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

0 comments on commit 12a5e8e

Please sign in to comment.