Changing how errors are logged to show correct details

This commit is contained in:
Collin Duncan 2023-08-10 13:34:39 +02:00
parent 56d1095f1f
commit 8ca3fe0644
No known key found for this signature in database

View file

@ -50,9 +50,7 @@ export class ReservationsWorker {
return
}
default:
this.loggerService.error('Error while performing reservation', {
error,
})
this.loggerService.error('Error while performing reservation', error)
throw error
}
}
@ -73,9 +71,10 @@ export class ReservationsWorker {
waitListed: true,
})
} catch (error: unknown) {
this.loggerService.error('Error adding reservation to waiting list', {
this.loggerService.error(
'Error adding reservation to waiting list',
error,
})
)
}
}
}