mirror of
https://github.com/immich-app/immich.git
synced 2026-10-11 22:49:53 +00:00
fix(logging): avoid multiline logging of feature flags in server service (#32275)
When logging feature flags at startup, avoid stringifying the features in pretty format. Multiline log messages clutter logs and make it harder to ingest and parse in log aggregation systems like loki, graylog or logz.io.
This commit is contained in:
@@ -36,7 +36,7 @@ export class ServerService extends BaseService {
|
||||
isOnboarded: true,
|
||||
});
|
||||
}
|
||||
this.logger.log(`Feature Flags: ${JSON.stringify(await this.getFeatures(), null, 2)}`);
|
||||
this.logger.log(`Feature Flags: ${JSON.stringify(await this.getFeatures())}`);
|
||||
}
|
||||
|
||||
async getAboutInfo(): Promise<ServerAboutResponseDto> {
|
||||
|
||||
Reference in New Issue
Block a user