From c96d58a6993d300bc36edc34d07fb66e48dbf436 Mon Sep 17 00:00:00 2001 From: Max Orlovsky Date: Thu, 21 Nov 2019 19:36:16 +0100 Subject: [PATCH 1/2] feat: add option to supress NS render logs --- platform/nativescript/framework.js | 1 + platform/nativescript/util/index.js | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/platform/nativescript/framework.js b/platform/nativescript/framework.js index 7f1b03c4..36be3515 100644 --- a/platform/nativescript/framework.js +++ b/platform/nativescript/framework.js @@ -6,6 +6,7 @@ import NavigatorPlugin from './plugins/navigator-plugin' import { setVue } from './util' Vue.config.silent = true +Vue.config.supressRenderLogs = false setVue(Vue) diff --git a/platform/nativescript/util/index.js b/platform/nativescript/util/index.js index b9eb1289..e9251308 100644 --- a/platform/nativescript/util/index.js +++ b/platform/nativescript/util/index.js @@ -74,9 +74,11 @@ export function trace(message) { return infoTrace() } - console.log( - `{NSVue (Vue: ${VUE_VERSION} | NSVue: ${NS_VUE_VERSION})} -> ${message}` - ) + if (!_Vue.config.supressRenderLogs) { + console.log( + `{NSVue (Vue: ${VUE_VERSION} | NSVue: ${NS_VUE_VERSION})} -> ${message}` + ) + } } export function before(original, thisArg, wrap) { From 8c80a9e499262d5d71553a69ae8d2b14424442c2 Mon Sep 17 00:00:00 2001 From: Max Orlovsky Date: Thu, 21 Nov 2019 19:43:00 +0100 Subject: [PATCH 2/2] fix: typo supress -> suppress --- platform/nativescript/framework.js | 2 +- platform/nativescript/util/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/nativescript/framework.js b/platform/nativescript/framework.js index 36be3515..8e6aa8da 100644 --- a/platform/nativescript/framework.js +++ b/platform/nativescript/framework.js @@ -6,7 +6,7 @@ import NavigatorPlugin from './plugins/navigator-plugin' import { setVue } from './util' Vue.config.silent = true -Vue.config.supressRenderLogs = false +Vue.config.suppressRenderLogs = false setVue(Vue) diff --git a/platform/nativescript/util/index.js b/platform/nativescript/util/index.js index e9251308..08c1d7d4 100644 --- a/platform/nativescript/util/index.js +++ b/platform/nativescript/util/index.js @@ -74,7 +74,7 @@ export function trace(message) { return infoTrace() } - if (!_Vue.config.supressRenderLogs) { + if (!_Vue.config.suppressRenderLogs) { console.log( `{NSVue (Vue: ${VUE_VERSION} | NSVue: ${NS_VUE_VERSION})} -> ${message}` )