1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: error logging properly (#6144)

This commit is contained in:
Gastón Fournier 2024-02-06 16:39:57 +01:00 committed by GitHub
parent b45f7be680
commit c69f41e4ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -132,7 +132,7 @@ export class ProxyService {
});
client.on(UnleashEvents.Error, (error) => {
this.logger.error(error);
this.logger.error('We found an event error', error);
});
await client.start();
@ -184,7 +184,7 @@ export class ProxyService {
frontendApiOrigins: this.config.frontendApiOrigins,
});
} catch (error) {
this.logger.debug('Unable to fetch frontend settings');
this.logger.debug('Unable to fetch frontend settings', error);
}
return this.cachedFrontendSettings;
}