logging
This commit is contained in:
@@ -7,6 +7,7 @@ import { MemoryCacheService } from './cache/memory-cache-service';
|
||||
import { RedisCacheService } from './cache/redis-cache-service';
|
||||
import { GlitchtipErrorReportingService } from './errors/glitchtip-error-reporting-service';
|
||||
import { NoopErrorReportingService } from './errors/noop-error-reporting-service';
|
||||
import { PinoLoggerService } from './logging/pino-logger-service';
|
||||
|
||||
let singleton: AppServices | undefined;
|
||||
|
||||
@@ -32,7 +33,9 @@ export function getServerAppServices(): AppServices {
|
||||
})
|
||||
: new MemoryCacheService();
|
||||
|
||||
singleton = new AppServices(analytics, errors, cache);
|
||||
const logger = new PinoLoggerService('server');
|
||||
|
||||
singleton = new AppServices(analytics, errors, cache, logger);
|
||||
return singleton;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user