Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbushi committed Feb 3, 2025
1 parent 090d6d7 commit c231c02
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions js/core/src/reflection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,12 @@ export class ReflectionServer {
server.post('/api/notify', async (request, response) => {
const { telemetryServerUrl, reflectionApiSpecVersion } = request.body;
if (!process.env.GENKIT_TELEMETRY_SERVER) {
setTelemetryServerUrl(telemetryServerUrl);
logger.debug(`Connected to telemetry server on ${telemetryServerUrl}`);
if (typeof telemetryServerUrl === 'string') {
setTelemetryServerUrl(telemetryServerUrl);
logger.debug(
`Connected to telemetry server on ${telemetryServerUrl}`
);
}
}
if (reflectionApiSpecVersion !== GENKIT_REFLECTION_API_SPEC_VERSION) {
if (
Expand Down

0 comments on commit c231c02

Please sign in to comment.