fix: remove toString() in metric attributes to avooid silly data like Object: Object
This commit is contained in:
@@ -44,7 +44,7 @@ export const hotelQueryRouter = router({
|
||||
console.info(
|
||||
"api.hotels.hotel start",
|
||||
JSON.stringify({
|
||||
query: { hotelId, params: params.toString() },
|
||||
query: { hotelId, params },
|
||||
})
|
||||
)
|
||||
const apiResponse = await api.get(
|
||||
@@ -74,7 +74,7 @@ export const hotelQueryRouter = router({
|
||||
console.error(
|
||||
"api.hotels.hotel error",
|
||||
JSON.stringify({
|
||||
query: { hotelId, params: params.toString() },
|
||||
query: { hotelId, params },
|
||||
error: {
|
||||
status: apiResponse.status,
|
||||
statusText: apiResponse.statusText,
|
||||
@@ -99,7 +99,7 @@ export const hotelQueryRouter = router({
|
||||
console.error(
|
||||
"api.hotels.hotel validation error",
|
||||
JSON.stringify({
|
||||
query: { hotelId, params: params.toString() },
|
||||
query: { hotelId, params },
|
||||
error: validatedHotelData.error,
|
||||
})
|
||||
)
|
||||
@@ -129,7 +129,7 @@ export const hotelQueryRouter = router({
|
||||
console.error(
|
||||
"api.hotels.hotel validation error",
|
||||
JSON.stringify({
|
||||
query: { hotelId, params: params.toString() },
|
||||
query: { hotelId, params },
|
||||
error: validatedRoom.error,
|
||||
})
|
||||
)
|
||||
@@ -144,7 +144,7 @@ export const hotelQueryRouter = router({
|
||||
console.info(
|
||||
"api.hotels.hotel success",
|
||||
JSON.stringify({
|
||||
query: { hotelId, params: params.toString() },
|
||||
query: { hotelId, params: params },
|
||||
})
|
||||
)
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user