mirror of
https://git.boykissers.com/pawkey/pawkey-sk.git
synced 2025-12-20 04:04:16 +00:00
record user ID in API error logger, matching sentry
This commit is contained in:
@@ -103,6 +103,7 @@ export class ApiCallService implements OnApplicationShutdown {
|
||||
const errId = randomUUID();
|
||||
this.logger.error(`Internal error occurred in ${ep.name}: ${renderInlineError(err)}`, {
|
||||
ep: ep.name,
|
||||
user: userId ?? '<unauthenticated>',
|
||||
e: {
|
||||
message: err.message,
|
||||
code: err.name,
|
||||
|
||||
Reference in New Issue
Block a user