Browse Source

添加paypal支付失败日志

lang 3 years ago
parent
commit
86ac0ace54
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Controller/CloudStorage.py

+ 3 - 2
Controller/CloudStorage.py

@@ -1068,8 +1068,9 @@ class CloudStorageView(View):
                 redisObj.del_data(key=orderID + 'do_notify')
                 redisObj.del_data(key=orderID + 'do_notify')
                 return HttpResponseRedirect(red_url)
                 return HttpResponseRedirect(red_url)
         except Exception as e:
         except Exception as e:
-            print(repr(e))
-
+            logger.info('paypal支付失败:----')
+            logger.info("错误行数:{errLine}".format(errLine=e.__traceback__.tb_lineno))
+            logger.info(repr(e))
             if order_qs:
             if order_qs:
                 order_qs.update(status=10, promotion_rule_id=promotion_rule_id)
                 order_qs.update(status=10, promotion_rule_id=promotion_rule_id)
             red_url = "{SERVER_DOMAIN_SSL}web/paid2/fail.html".format(SERVER_DOMAIN_SSL=SERVER_DOMAIN_SSL)
             red_url = "{SERVER_DOMAIN_SSL}web/paid2/fail.html".format(SERVER_DOMAIN_SSL=SERVER_DOMAIN_SSL)