mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +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 celery.decorators import task
|
||||||
from eve_api.api_puller.accounts import import_eve_account
|
from eve_api.api_puller.accounts import import_eve_account
|
||||||
from eve_api.app_defines import *
|
from eve_api.app_defines import *
|
||||||
@@ -5,6 +6,8 @@ from sso.tasks import update_user_access
|
|||||||
|
|
||||||
@task()
|
@task()
|
||||||
def import_apikey(api_userid, api_key, user=None, force_cache=False):
|
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)
|
acc = import_eve_account(api_key, api_userid, force_cache=force_cache)
|
||||||
donecorps = []
|
donecorps = []
|
||||||
if acc and acc.api_status == API_STATUS_OK:
|
if acc and acc.api_status == API_STATUS_OK:
|
||||||
|
|||||||
Reference in New Issue
Block a user