From c9ec04292da0dda295867b7e80215733f17e4916 Mon Sep 17 00:00:00 2001
From: FORESTIER Fabien <fabien.forestier@soprasteria.com>
Date: Thu, 1 Aug 2019 16:37:30 +0200
Subject: [PATCH] Remove healthheck on legacy auth service, user AppLogger as
 default logger

---
 .vscode/settings.json              | 13 +++++++++++++
 src/health/health-check.service.ts |  1 -
 src/main.ts                        |  4 +---
 3 files changed, 14 insertions(+), 4 deletions(-)
 create mode 100644 .vscode/settings.json

diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..4b13468
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,13 @@
+{
+  "workbench.colorCustomizations": {
+    "activityBar.background": "#1f6fd0",
+    "activityBar.foreground": "#e7e7e7",
+    "activityBar.inactiveForeground": "#e7e7e799",
+    "activityBarBadge.background": "#ee90bb",
+    "activityBarBadge.foreground": "#15202b",
+    "statusBar.background": "#1857a4",
+    "statusBarItem.hoverBackground": "#1f6fd0",
+    "statusBar.foreground": "#e7e7e7",
+    "tab.activeBorder": "#1f6fd0"
+  }
+}
\ No newline at end of file
diff --git a/src/health/health-check.service.ts b/src/health/health-check.service.ts
index 22a25c2..8c278ad 100644
--- a/src/health/health-check.service.ts
+++ b/src/health/health-check.service.ts
@@ -22,7 +22,6 @@ export class HealthCheckService implements TerminusOptionsFactory {
     const healthEndpoint: TerminusEndpoint = {
       url: '/health',
       healthIndicators: [
-        async () => this._dnsHealthIndicator.pingCheck('LegacyAuthService', `${config.legacyAuthServiceUrl}/get_services`),
         async () => this._dnsHealthIndicator.pingCheck('EmailService', `${config.serviceEmailUrl}/health`),
         async () => this._redisHealthIndicator.checkRedisConnection(config.redis),
       ],
diff --git a/src/main.ts b/src/main.ts
index aec5208..8dd11fb 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -10,7 +10,7 @@ import { AppLogger } from './app-logger';
 
 async function bootstrap() {
   const app = await NestFactory.create(AppModule, {
-    logger: false,
+    logger: new AppLogger(),
   });
 
   app.enableCors({ credentials: true, origin: true });
@@ -34,8 +34,6 @@ async function bootstrap() {
 
   app.useGlobalPipes(new ValidationPipe());
 
-  app.useLogger(app.get(AppLogger));
-
   await app.listen(3000);
 }
 bootstrap();
-- 
GitLab