Skip to content

Commit f88a3df

Browse files
committed
chore: proper error log format
1 parent 75113e9 commit f88a3df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/onInitExtension.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ export const onInitExtension = (pluginOptions: PluginTypes, payload: Payload): v
1111
// You can use the existing express app here to add middleware, routes, etc.
1212
// app.use(...)
1313
} catch (err: unknown) {
14-
payload.logger.error(err)
14+
payload.logger.error({ msg: 'Error in onInitExtension', err })
1515
}
1616
}

0 commit comments

Comments
 (0)