From 941da2b1453cda2b981c5891fcc5d58c04df4544 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Mon, 8 Nov 2010 13:39:35 +0000 Subject: [PATCH] Add some logging to the EVE API task --- eve_api/tasks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eve_api/tasks.py b/eve_api/tasks.py index 6a8fd07..a0a63c3 100644 --- a/eve_api/tasks.py +++ b/eve_api/tasks.py @@ -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: