mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 12:36:57 +00:00
record user ID in API error logger, matching sentry
This commit is contained in:
parent
d23d7f1e0b
commit
3e9ca84347
1 changed files with 1 additions and 0 deletions
|
@ -103,6 +103,7 @@ export class ApiCallService implements OnApplicationShutdown {
|
||||||
const errId = randomUUID();
|
const errId = randomUUID();
|
||||||
this.logger.error(`Internal error occurred in ${ep.name}: ${renderInlineError(err)}`, {
|
this.logger.error(`Internal error occurred in ${ep.name}: ${renderInlineError(err)}`, {
|
||||||
ep: ep.name,
|
ep: ep.name,
|
||||||
|
user: userId ?? '<unauthenticated>',
|
||||||
e: {
|
e: {
|
||||||
message: err.message,
|
message: err.message,
|
||||||
code: err.name,
|
code: err.name,
|
||||||
|
|
Loading…
Add table
Reference in a new issue