Add some logging to the EVE API task

This commit is contained in:
2010-11-08 13:39:35 +00:00
parent ce1b634bdb
commit 941da2b145

View File

@@ -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: