From 7b5c2feb35bab6debda57b880efc7ba1dc61383b Mon Sep 17 00:00:00 2001 From: Raymond Yee Date: Fri, 11 May 2012 11:14:43 -0700 Subject: [PATCH] Added logging on whether loading of FPS keys successful --- payment/amazon.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/payment/amazon.py b/payment/amazon.py index 741ea7d3..f5990369 100644 --- a/payment/amazon.py +++ b/payment/amazon.py @@ -55,9 +55,11 @@ try: from regluit.core.models import Key FPS_ACCESS_KEY = Key.objects.get(name="FPS_ACCESS_KEY").value FPS_SECRET_KEY = Key.objects.get(name="FPS_SECRET_KEY").value -except: + logger.info('Successful loading of FPS_*_KEYs') +except Exception, e: FPS_ACCESS_KEY = '' FPS_SECRET_KEY = '' + logger.info('EXCEPTION: unsuccessful loading of FPS_*_KEYs: {0}'.format(e)) def ProcessIPN(request):