[#1767] Rename import api class, other cleanups.

Signed-off-by: Paul Sokolovsky psokolovsky@geek.net

Paul Sokolovsky Paul Sokolovsky 2011-04-06

Dave Brondsema Dave Brondsema 2011-04-07

changed scripts/allura_import.py
changed scripts/allura_import_test.py
copied scripts/allura_api.py -> scripts/allura_import_api.py
scripts/allura_import.py Diff Switch to side-by-side view
Loading...
scripts/allura_import_test.py Diff Switch to side-by-side view
Loading...
scripts/allura_api.py to scripts/allura_import_api.py
--- a/scripts/allura_api.py
+++ b/scripts/allura_import_api.py
@@ -5,10 +5,13 @@
 import hmac
 import hashlib
 import json
+import logging
 from datetime import datetime
 
 
-class AlluraApiClient(object):
+log = logging.getLogger('import')
+
+class AlluraImportApiClient(object):
 
     def __init__(self, base_url, api_key, secret_key, verbose=False, retry=True):
         self.base_url = base_url
@@ -41,5 +44,6 @@
                 raise e
             except (urllib2.URLError, IOError):
                 if self.retry:
+                    log.exception('Error making API request, will retry')
                     continue
                 raise