mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Add some logging to the EVE API task
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import logging
|
||||
from celery.decorators import task
|
||||
from eve_api.api_puller.accounts import import_eve_account
|
||||
from eve_api.app_defines import *
|
||||
@@ -5,6 +6,8 @@ from sso.tasks import update_user_access
|
||||
|
||||
@task()
|
||||
def import_apikey(api_userid, api_key, user=None, force_cache=False):
|
||||
l = logging.getLogger('import_apikey')
|
||||
l.info("Importing %s/%s" % (api_userid, api_key))
|
||||
acc = import_eve_account(api_key, api_userid, force_cache=force_cache)
|
||||
donecorps = []
|
||||
if acc and acc.api_status == API_STATUS_OK:
|
||||
|
||||
Reference in New Issue
Block a user