Skip to content

Group logs to handle stacks #18

@sergeysova

Description

@sergeysova
root.onCreateEvent(event => {
  const watch = event.watch
  event.watch = fn => watch(upd => {
    console.group(...)
    try {
      fn(upd)
    } finally {
      console.groupEnd(...)
    }
  })
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions