web: show version in logs

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-09-02 17:10:43 +02:00
parent cc5cc43baa
commit d5d1f2a645
2 changed files with 3 additions and 1 deletions

View File

@ -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}`);

View File

@ -32,7 +32,6 @@ export class SystemStatusCard extends AdminStatusCard<System> {
});
}
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<AdminStatus>({