Skip to content

Commit c24bc06

Browse files
committed
fix: log event
Signed-off-by: Innei <i@innei.in>
1 parent b59bd47 commit c24bc06

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/modules/mx-space/event-handler.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { inspect } from 'util'
12
import { appConfig } from 'app.config'
23
import dayjs from 'dayjs'
34
import { default as RemoveMarkdown, default as rmd } from 'remove-markdown'
@@ -32,7 +33,7 @@ const logger = createNamespaceLogger('mx-event')
3233

3334
export const handleEvent =
3435
(ctx: ModuleContext) => async (type: BusinessEvents, payload: any) => {
35-
logger.debug(type, payload)
36+
logger.log(type, inspect(payload))
3637

3738
const aggregateData = await getMxSpaceAggregateData()
3839
const owner = aggregateData.user

0 commit comments

Comments
 (0)