From d5d1f2a645195067c0e7b7c94845c5cca6bec574 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 2 Sep 2021 17:10:43 +0200 Subject: [PATCH] web: show version in logs Signed-off-by: Jens Langhammer --- web/src/api/Config.ts | 3 +++ web/src/pages/admin-overview/cards/SystemStatusCard.ts | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/api/Config.ts b/web/src/api/Config.ts index b204feaa4..e7a570b3e 100644 --- a/web/src/api/Config.ts +++ b/web/src/api/Config.ts @@ -2,6 +2,7 @@ import { Config, Configuration, CoreApi, CurrentTenant, Middleware, ResponseCont import { getCookie } from "../utils"; import { APIMiddleware } from "../elements/notifications/APIDrawer"; import { MessageMiddleware } from "../elements/messages/Middleware"; +import { VERSION } from "../constants"; export class LoggingMiddleware implements Middleware { @@ -59,3 +60,5 @@ export const DEFAULT_CONFIG = new Configuration({ new LoggingMiddleware(), ], }); + +console.debug(`authentik: version ${VERSION}`); diff --git a/web/src/pages/admin-overview/cards/SystemStatusCard.ts b/web/src/pages/admin-overview/cards/SystemStatusCard.ts index f961a9476..7ebcb1771 100644 --- a/web/src/pages/admin-overview/cards/SystemStatusCard.ts +++ b/web/src/pages/admin-overview/cards/SystemStatusCard.ts @@ -32,7 +32,6 @@ export class SystemStatusCard extends AdminStatusCard { }); } const timeDiff = value.serverTime.getTime() - (this.now || new Date()).getTime(); - console.log(`authentik/: timediff ${timeDiff}`); if (timeDiff > 5000 || timeDiff < -5000) { this.header = t`Warning`; return Promise.resolve({