|
|
|
@ -71,8 +71,8 @@ def transaction_to_roistat(user_id, payment_id, event_name, amount, time, status |
|
|
|
if resp.status_code != 200 or not resp_json or not resp_json.get('processed'): |
|
|
|
if resp.status_code != 200 or not resp_json or not resp_json.get('processed'): |
|
|
|
logger.error('TRANSACTION_TO_ROISTAT for payment # %d, %s RUB: %s' % ( |
|
|
|
logger.error('TRANSACTION_TO_ROISTAT for payment # %d, %s RUB: %s' % ( |
|
|
|
payment_id, amount, resp.text)) |
|
|
|
payment_id, amount, resp.text)) |
|
|
|
roistat_logger.debug('TRANSACTION_TO_ROISTAT for payment # %d, %s RUB: %s' % ( |
|
|
|
logger_roistat.debug('TRANSACTION_TO_ROISTAT for payment # %d, %s RUB: %s' % ( |
|
|
|
payment_id, amount, resp.text)) |
|
|
|
payment_id, amount, resp.text)) |
|
|
|
else: |
|
|
|
else: |
|
|
|
logger.info('TRANSACTION_TO_ROISTAT: ' + str(resp.text)) |
|
|
|
logger.info('TRANSACTION_TO_ROISTAT: ' + str(resp.text)) |
|
|
|
roistat_logger.debug('TRANSACTION_TO_ROISTAT: ' + str(resp.text)) |
|
|
|
logger_roistat.debug('TRANSACTION_TO_ROISTAT: ' + str(resp.text)) |
|
|
|
|