fix(server): log error on gcloud (#10235)

This commit is contained in:
fengmk2
2025-02-18 03:21:31 +00:00
parent b2654ffec7
commit bae1a7f2ac
2 changed files with 18 additions and 11 deletions

View File

@@ -8,6 +8,10 @@ export class AFFiNELogger extends WinstonLogger {
stackOrError?: Error | string | unknown,
context?: string
) {
RawAFFiNELogger.prototype.error.call(this, message, stackOrError, context);
super.error(
message,
RawAFFiNELogger.formatStack(stackOrError) as string,
context
);
}
}