Skip to content

Commit 17f7a28

Browse files
authored
Merge pull request #597 from devchat-ai/feat/add-logging-for-local-service-port
feat: Add logging for local service port
2 parents d60291e + fca2800 commit 17f7a28

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/toolwrapper/devchatClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ export class DevChatClient {
155155
logger.channel()?.info("No local service port found.");
156156
throw new DCLocalServicePortNotSetError();
157157
}
158+
logger.channel()?.trace("Using local service port:", process.env.DC_LOCALSERVICE_PORT);
158159
const port: number = parseInt(process.env.DC_LOCALSERVICE_PORT || '8008', 10);
159160
this.baseURL = `http://localhost:${port}`;
160161
}
@@ -174,6 +175,7 @@ export class DevChatClient {
174175
logger.channel()?.info("No local service port found.");
175176
throw new DCLocalServicePortNotSetError();
176177
}
178+
logger.channel()?.trace("Using local service port:", process.env.DC_LOCALSERVICE_PORT);
177179
const port: number = parseInt(process.env.DC_LOCALSERVICE_PORT || '8008', 10);
178180
this.baseURL = `http://localhost:${port}`;
179181
}
@@ -251,6 +253,7 @@ export class DevChatClient {
251253
if (!process.env.DC_LOCALSERVICE_PORT) {
252254
logger.channel()?.info("No local service port found.");
253255
}
256+
logger.channel()?.trace("Using local service port:", process.env.DC_LOCALSERVICE_PORT);
254257
const port: number = parseInt(process.env.DC_LOCALSERVICE_PORT || '8008', 10);
255258
this.baseURL = `http://localhost:${port}`;
256259
}

0 commit comments

Comments
 (0)