mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Convert account error lines to debug lines
This commit is contained in:
@@ -60,7 +60,7 @@ def import_apikey(api_userid, api_key, user=None, force_cache=False, retry=True,
|
|||||||
try:
|
try:
|
||||||
import_apikey_func(api_userid, api_key, user, force_cache, log)
|
import_apikey_func(api_userid, api_key, user, force_cache, log)
|
||||||
except (APIAccessException, DocumentRetrievalError), exc:
|
except (APIAccessException, DocumentRetrievalError), exc:
|
||||||
log.error('Error importing API Key - flagging for retry', exc_info=sys.exc_info(), extra={'data': {'api_userid': api_userid, 'api_key': api_key}})
|
log.debug('Error importing API Key - flagging for retry', exc_info=sys.exc_info(), extra={'data': {'api_userid': api_userid, 'api_key': api_key}})
|
||||||
if retry:
|
if retry:
|
||||||
import_apikey.retry(args=[api_userid, api_key, user, force_cache], exc=exc, kwargs=kwargs)
|
import_apikey.retry(args=[api_userid, api_key, user, force_cache], exc=exc, kwargs=kwargs)
|
||||||
else:
|
else:
|
||||||
@@ -77,7 +77,7 @@ def import_apikey_result(api_userid, api_key, user=None, force_cache=False, call
|
|||||||
try:
|
try:
|
||||||
results = import_apikey_func(api_userid, api_key, user, force_cache, log)
|
results = import_apikey_func(api_userid, api_key, user, force_cache, log)
|
||||||
except (APIAccessException, DocumentRetrievalError), exc:
|
except (APIAccessException, DocumentRetrievalError), exc:
|
||||||
log.error('Error importing API Key - flagging for retry', exc_info=sys.exc_info(), extra={'data': {'api_userid': api_userid, 'api_key': api_key}})
|
log.debug('Error importing API Key - flagging for retry', exc_info=sys.exc_info(), extra={'data': {'api_userid': api_userid, 'api_key': api_key}})
|
||||||
if retry:
|
if retry:
|
||||||
import_apikey_result.retry(args=[api_userid, api_key, user, force_cache, callback], exc=exc, kwargs=kwargs)
|
import_apikey_result.retry(args=[api_userid, api_key, user, force_cache, callback], exc=exc, kwargs=kwargs)
|
||||||
else:
|
else:
|
||||||
@@ -90,7 +90,7 @@ def import_apikey_result(api_userid, api_key, user=None, force_cache=False, call
|
|||||||
|
|
||||||
|
|
||||||
def import_apikey_func(api_userid, api_key, user=None, force_cache=False, log=logging.getLogger(__name__)):
|
def import_apikey_func(api_userid, api_key, user=None, force_cache=False, log=logging.getLogger(__name__)):
|
||||||
log.info('Importing %s/%s' % (api_userid, api_key))
|
log.debug('Importing %s/%s' % (api_userid, api_key))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
account = EVEAccount.objects.get(pk=api_userid)
|
account = EVEAccount.objects.get(pk=api_userid)
|
||||||
|
|||||||
Reference in New Issue
Block a user