优化后端鉴权与日志安全
This commit is contained in:
@@ -1,6 +1,26 @@
|
||||
export type StartupState = ReturnType<typeof createStartupState>;
|
||||
type StartupProcessError = {
|
||||
time: string;
|
||||
message: string;
|
||||
};
|
||||
|
||||
export function createStartupState() {
|
||||
export type StartupState = {
|
||||
phase: string;
|
||||
startedAt: string;
|
||||
core: {
|
||||
ready: boolean;
|
||||
running: boolean;
|
||||
attemptCount: number;
|
||||
readyAt: string;
|
||||
lastAttemptAt: string;
|
||||
lastError: string;
|
||||
};
|
||||
process: {
|
||||
lastUnhandledRejection: StartupProcessError | null;
|
||||
lastUncaughtException: StartupProcessError | null;
|
||||
};
|
||||
};
|
||||
|
||||
export function createStartupState(): StartupState {
|
||||
return {
|
||||
phase: "starting",
|
||||
startedAt: new Date().toISOString(),
|
||||
|
||||
Reference in New Issue
Block a user