Skip to content

Commit

Permalink
feat(logging): use the just implemented debug() function for logging …
Browse files Browse the repository at this point in the history
…instead of the console.log sentence
  • Loading branch information
msaelices committed Mar 28, 2020
1 parent 17b9263 commit ad2f7d2
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/runtime/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
VNode
} from '@vue/runtime-core'
import { Application } from '@nativescript/core'
import { debug } from '@nativescript-vue/shared'
import { nodeOps } from './nodeOps'
import { patchProp } from './patchProp'
import { INSVElement } from './nodes'
Expand All @@ -26,11 +27,13 @@ function ensureRenderer() {
function runApp(root: ComponentPublicInstance): ComponentPublicInstance {
Application.run({
create: () => {
console.log({
id: root.$el.nodeId,
type: root.$el.nodeType,
tag: root.$el.tagName
})
debug(
`Root Node: ${JSON.stringify({
id: root.$el.nodeId,
type: root.$el.nodeType,
tag: root.$el.tagName
})}`
)
return root.$el.nativeView
}
})
Expand Down

0 comments on commit ad2f7d2

Please sign in to comment.