web: show version in logs
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
cc5cc43baa
commit
d5d1f2a645
|
@ -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}`);
|
||||
|
|
|
@ -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>({
|
||||
|
|
Reference in New Issue