mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 10:06:17 +08:00
chore(server): setup winston logger (#9561)
There is no impact on the existing logger, as the current logger is used with `new Logger(Context)` and does not utilize dependency injection. In the next phase, gradually replace and supplement the existing `Logger`.
This commit is contained in:
@@ -16,7 +16,7 @@ export const serverTimingAndCache = (
|
||||
const serverTiming = res.getHeader('Server-Timing') as string | undefined;
|
||||
const serverTimingValue = `${
|
||||
serverTiming ? `${serverTiming}, ` : ''
|
||||
}total;dur=${costInMilliseconds}`;
|
||||
}affine-server;dur=${costInMilliseconds}`;
|
||||
|
||||
res.setHeader('Server-Timing', serverTimingValue);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user