You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2015/05/28 22:13:16 UTC

[14/26] allura git commit: [#7868] ticket:776 Add number hash to log message

[#7868] ticket:776 Add number hash to log message


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/52aaea97
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/52aaea97
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/52aaea97

Branch: refs/heads/master
Commit: 52aaea97d665c87f27ab5aeba61902092c194334
Parents: 1d32c5d
Author: Igor Bondarenko <je...@gmail.com>
Authored: Tue May 26 14:00:22 2015 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Thu May 28 20:11:46 2015 +0000

----------------------------------------------------------------------
 Allura/allura/lib/phone/nexmo.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/52aaea97/Allura/allura/lib/phone/nexmo.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/phone/nexmo.py b/Allura/allura/lib/phone/nexmo.py
index feb6896..0ee4269 100644
--- a/Allura/allura/lib/phone/nexmo.py
+++ b/Allura/allura/lib/phone/nexmo.py
@@ -21,6 +21,7 @@ from urlparse import urljoin
 import json
 import requests
 from allura.lib.phone import PhoneService
+from allura.lib.utils import phone_number_hash
 
 log = logging.getLogger(__name__)
 
@@ -59,7 +60,7 @@ class NexmoPhoneService(PhoneService):
         params = self.add_common_params(params)
         log_params = dict(params, api_key='...', api_secret='...')
         if 'number' in log_params:
-            log_params['number'] = '...'
+            log_params['number'] = phone_number_hash(log_params['number'])
         params = json.dumps(params, sort_keys=True)
         log.info('PhoneService (nexmo) request: %s %s', url, log_params)
         try: