You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces comprehensive logging for the WebSocket server, covering connection upgrades, authentication results, room reservations, and connection lifecycle events. It also adds utility methods for gathering log context and sanitizing URLs by redacting sensitive tokens. The reviewer suggests adopting a structured logging library like Winston or Pino for better observability, preserving error stack traces by passing error objects directly to loggers, and removing redundant log statements in the rejectUpgrade method to reduce noise.
The reason will be displayed to describe this comment to others. Learn more.
운영 환경에서의 디버깅과 로그 관리를 위해 console.log 대신 winston이나 pino와 같은 구조화된 로거(Structured Logger) 사용을 권장합니다. 구조화된 로그를 사용하면 userId, travelDocId와 같은 필드를 개별 속성으로 저장할 수 있어, 나중에 로그 검색 및 분석이 훨씬 용이해집니다.
The reason will be displayed to describe this comment to others. Learn more.
rejectUpgrade 메서드 내부에 추가된 로그는 handleUpgrade에서 rejectUpgrade를 호출하기 직전에 이미 상세한 로그를 남기고 있어 중복됩니다. 로그 노이즈를 줄이기 위해 이 라인은 삭제하는 것을 권장합니다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.