Skip to content

Commit

Permalink
Update fetch error logging from console.error to console.warn (#871)
Browse files Browse the repository at this point in the history
* Update fetch error logging from console.error to console.warn

* Create purple-moles-appear.md

---------

Co-authored-by: Sunil Pai <threepointone@gmail.com>
  • Loading branch information
buildbreaker and threepointone committed Apr 16, 2024
1 parent 634725e commit 8f5800c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/purple-moles-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"partykit": patch
---

Update fetch error logging from console.error to console.warn
2 changes: 1 addition & 1 deletion packages/partykit/facade/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ export default {
});
}
} catch (e) {
console.error("fetch error", e);
console.warn("fetch error", e);
return new Response(e instanceof Error ? e.message : `${e}`, {
status: 500
});
Expand Down

0 comments on commit 8f5800c

Please sign in to comment.