diff --git a/packages/web-client/src/components/hot-or-not/HotOrNotVote.svelte b/packages/web-client/src/components/hot-or-not/HotOrNotVote.svelte index 01809c41c..ed5d34cc6 100644 --- a/packages/web-client/src/components/hot-or-not/HotOrNotVote.svelte +++ b/packages/web-client/src/components/hot-or-not/HotOrNotVote.svelte @@ -72,7 +72,7 @@ async function getBetDetailFromDb() { try { idb = (await import('$lib/idb')).idb } catch (e) { - Log('error', 'Error while accessing IDB', { + Log('warn', 'Error while accessing IDB', { error: e, source: 'HotOrNotVote.getBetDetailFromDb', type: 'idb', @@ -86,7 +86,7 @@ async function getBetDetailFromDb() { post.publisher_canister_id + '@' + post.post_id, )) as PlacedBetDetail } catch (e) { - Log('error', 'Error while accessing IDB', { + Log('warn', 'Error while accessing IDB', { error: e, source: 'HotOrNotVote.saveBetToDb', type: 'idb', @@ -114,7 +114,7 @@ async function updatePlacedBetDetail() { } } catch (e) { //TODO: Add retries - Log('error', 'Could not fetch bet details', { + Log('warn', 'Could not fetch bet details', { error: e, source: 'HotOrNotVote.updatePlacedBetDetail', }) @@ -218,7 +218,7 @@ async function placeVote({ coins, direction }: PlaceVote) { loadingWithDirection = false } } catch (e) { - Log('error', 'Could not place bet', { + Log('warn', 'Could not place bet', { error: e, postId: post?.id, from: 'HotOrNotVote.placeVote', diff --git a/packages/web-client/src/components/layout/PlayerLayout.svelte b/packages/web-client/src/components/layout/PlayerLayout.svelte index 2446c1fd1..db7c4c2ad 100644 --- a/packages/web-client/src/components/layout/PlayerLayout.svelte +++ b/packages/web-client/src/components/layout/PlayerLayout.svelte @@ -181,7 +181,7 @@ async function updateStats() { post.publisher_canister_id, ).update_post_add_view_details(post.id, payload) } catch (e) { - Log('error', 'Could not update watch stats', { + Log('warn', 'Could not update watch stats', { from: 'PlayerLayout.updateStats', i: index, payload, @@ -279,7 +279,7 @@ $: avatarUrl =