From 3e3deb6b0f69c617df8e4dd7d0e5d1e7f2bf309b Mon Sep 17 00:00:00 2001 From: Tyr Johanson Date: Tue, 23 Oct 2018 22:13:10 +0000 Subject: [PATCH 1/3] turn off logging --- src/javascript/utils/__ts-logger.js | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/src/javascript/utils/__ts-logger.js b/src/javascript/utils/__ts-logger.js index d6c1145..42f64ae 100644 --- a/src/javascript/utils/__ts-logger.js +++ b/src/javascript/utils/__ts-logger.js @@ -1,20 +1,23 @@ /* */ -Ext.define('Rally.technicalservices.Logger',{ - constructor: function(config){ - Ext.apply(this,config); +Ext.define('Rally.technicalservices.Logger', { + enableLogging: false, + constructor: function(config) { + Ext.apply(this, config); }, - log: function(args){ - var timestamp = "[ " + Ext.util.Format.date(new Date(), "Y-m-d H:i:s.u") + " ]"; - //var output_args = arguments; - //output_args.unshift( [ "[ " + timestamp + " ]" ] ); - //output_args = Ext.Array.push(output_args,arguments); - - var output_args = []; - output_args = Ext.Array.push(output_args,[timestamp]); - output_args = Ext.Array.push(output_args, Ext.Array.slice(arguments,0)); + log: function(args) { + if (this.enableLogging) { + var timestamp = "[ " + Ext.util.Format.date(new Date(), "Y-m-d H:i:s.u") + " ]"; + //var output_args = arguments; + //output_args.unshift( [ "[ " + timestamp + " ]" ] ); + //output_args = Ext.Array.push(output_args,arguments); - window.console && console.log.apply(console,output_args); + var output_args = []; + output_args = Ext.Array.push(output_args, [timestamp]); + output_args = Ext.Array.push(output_args, Ext.Array.slice(arguments, 0)); + + window.console && console.log.apply(console, output_args); + } } }); From 47194fe99b2f98612deb7a00be9a15f3765128a9 Mon Sep 17 00:00:00 2001 From: Tyr Johanson Date: Wed, 24 Oct 2018 23:36:07 +0000 Subject: [PATCH 2/3] listen for ancestor filters --- deploy/Ugly.txt | 10 +++++----- package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/deploy/Ugly.txt b/deploy/Ugly.txt index 6db82d8..f00963a 100644 --- a/deploy/Ugly.txt +++ b/deploy/Ugly.txt @@ -1,13 +1,13 @@ - query-counter-1.0.7 + query-counter-1.1.0 - + @@ -18,7 +18,7 @@ diff --git a/package.json b/package.json index 7bd0847..1d5ab9b 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "deploy-debugsdk:watch": "nodemon --exec grunt deploy-debugsdk" }, "dependencies": { - "@agile-central-technical-services/utils-ancestor-pi-app-filter": "^3.0.0", + "@agile-central-technical-services/utils-ancestor-pi-app-filter": "^2.1.0", "@agile-central-technical-services/utils-file-utils": "^1.0.0" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index afdfe52..9772d80 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,9 +2,9 @@ # yarn lockfile v1 -"@agile-central-technical-services/utils-ancestor-pi-app-filter@^3.0.0": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@agile-central-technical-services/utils-ancestor-pi-app-filter/-/utils-ancestor-pi-app-filter-3.0.0.tgz#ddcf9eed9b13154b0b39168db416bf41feb2dc65" +"@agile-central-technical-services/utils-ancestor-pi-app-filter@^2.1.0": + version "2.1.0" + resolved "https://registry.yarnpkg.com/@agile-central-technical-services/utils-ancestor-pi-app-filter/-/utils-ancestor-pi-app-filter-2.1.0.tgz#a2417a0aa43cce28f6c0cc34a7f3d6a898f6e2bf" "@agile-central-technical-services/utils-file-utils@^1.0.0": version "1.0.0"