usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From toddn...@apache.org
Subject [08/19] incubator-usergrid git commit: Change usergrid SDK logging to be set via config.
Date Fri, 22 May 2015 00:22:06 GMT
Change usergrid SDK logging to be set via config.


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/7e917f43
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/7e917f43
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/7e917f43

Branch: refs/heads/USERGRID-641
Commit: 7e917f43367e6958cf075dbd6a500cbe39138941
Parents: 5b1dfa1
Author: Michael Russo <mrusso@apigee.com>
Authored: Thu May 14 18:22:01 2015 -0700
Committer: Michael Russo <mrusso@apigee.com>
Committed: Thu May 14 18:31:12 2015 -0700

----------------------------------------------------------------------
 portal/config.js               | 4 +++-
 portal/js/global/ug-service.js | 4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/7e917f43/portal/config.js
----------------------------------------------------------------------
diff --git a/portal/config.js b/portal/config.js
index b84c62e..82c5a0f 100644
--- a/portal/config.js
+++ b/portal/config.js
@@ -27,7 +27,9 @@ Usergrid.overrideUrl = 'http://localhost:8080/';
 
 Usergrid.options = {
   client: {
-    requiresDeveloperKey: false
+    requiresDeveloperKey: false,
+    buildCurl: true,
+    logging: true
       // apiKey:'123456'
   },
   showAutoRefresh: true,

http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/7e917f43/portal/js/global/ug-service.js
----------------------------------------------------------------------
diff --git a/portal/js/global/ug-service.js b/portal/js/global/ug-service.js
index 230d54c..7bc9d7c 100644
--- a/portal/js/global/ug-service.js
+++ b/portal/js/global/ug-service.js
@@ -181,8 +181,8 @@ AppServices.Services.factory('ug', function(configuration, $rootScope,
utility,
     },
     client: function() {
       var options = {
-        buildCurl: true,
-        logging: true
+        buildCurl: Usergrid.options.client.buildCurl || false,
+        logging: Usergrid.options.client.logging || false
       };
       if (Usergrid.options && Usergrid.options.client) {
         options.keys = Usergrid.options.client;


Mime
View raw message