Skip to content

Commit 15b0209

Browse files
fix: logging attributes
1 parent 120da59 commit 15b0209

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@okkema/worker",
3-
"version": "4.7.3",
3+
"version": "4.7.4",
44
"description": "Cloudflare Workers Toolkit",
55
"files": [
66
"dist",

src/api/error.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export async function error(
66
// eslint-disable-next-line @typescript-eslint/no-unused-vars
77
c: Context,
88
) {
9-
console.error("Unhandled error %s", error.name)
10-
if (error.cause) console.error("Root cause: %s", error.cause)
9+
console.error("Unhandled error ", error.name)
10+
if (error.cause) console.error("Root cause ", error.cause)
1111
console.error(error.message)
1212
if (error.stack) console.error(error.stack)
1313
if (error instanceof Problem) return error.response

0 commit comments

Comments
 (0)