Skip to content

Commit

Permalink
Refactor: logger creation in NanotronClientRequest and NanotronServer…
Browse files Browse the repository at this point in the history
…Response
  • Loading branch information
alimd committed Sep 23, 2024
1 parent 41e241d commit 65accd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/api-server/src/api-client-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class NanotronClientRequest<TSharedMeta extends Dictionary = Dictionary>
this.remoteAddress = this.getRemoteAddress__();

// Create logger.
this.logger_ = createLogger(`nt-client-request[${this.remoteAddress}]`);
this.logger_ = createLogger(`nt-client-request(${this.remoteAddress})`);
this.logger_.logMethodArgs?.('new', url.debugId);

// Create server response.
Expand Down
2 changes: 1 addition & 1 deletion packages/api-server/src/api-server-response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class NanotronServerResponse {
this.raw_ = nativeServerResponse;

// Create logger.
this.logger_ = createLogger(`nt-server-response[${this.clientRequest.remoteAddress}]`);
this.logger_ = createLogger(`nt-server-response(${this.clientRequest.remoteAddress})`);
this.logger_.logMethodArgs?.('new', this.clientRequest.url.debugId);

// Set default reply headers.
Expand Down

0 comments on commit 65accd3

Please # to comment.