Skip to content

Commit

Permalink
extra logging
Browse files Browse the repository at this point in the history
  • Loading branch information
patsissons committed Mar 25, 2023
1 parent 477889f commit 5e37ff1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/Items/ItemTable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
})
}, new Map<string, Ratings>())
console.info(`loaded ${ratings.size} external ratings`)
console.info(`loaded ${ratings.size} external ratings`, ratings)
ratingsStore.set(ratings)
} catch (error) {
console.error('Error loading external ratings', error)
Expand Down
1 change: 1 addition & 0 deletions src/lib/server/fetchJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export async function fetchJson<Result = Record<string, unknown>>(

return camelize<Result>(payload)
} catch (error) {
// console.log('E', error)
if (fallbackUrl) {
return await fetchJson<Result>(fetch, fallbackUrl)
}
Expand Down

0 comments on commit 5e37ff1

Please sign in to comment.