def _log_error_with_data(msg, post):
 id = random.randint(0, 99999999)
 msg = ('[%s] %s (dumping data)' % (id, msg))
 paypal_log.error(msg)
 logme = {'txn_id': post.get('txn_id'), 'txn_type': post.get('txn_type'), 'payer_email': post.get('payer_email'), 'receiver_email': post.get('receiver_email'), 'payment_status': post.get('payment_status'), 'payment_type': post.get('payment_type'), 'mc_gross': post.get('mc_gross'), 'item_number': post.get('item_number')}
 paypal_log.error(('[%s] PayPal Data: %s' % (id, logme)))

def _log_error_with_data ( msg , post ) : id = random . randint ( 0 , 99999999 ) msg = ( '[%s] %s (dumping data)' % ( id , msg ) ) paypal_log . error ( msg ) logme = { 'txn_id' : post . get ( 'txn_id' ) , 'txn_type' : post . get ( 'txn_type' ) , 'payer_email' : post . get ( 'payer_email' ) , 'receiver_email' : post . get ( 'receiver_email' ) , 'payment_status' : post . get ( 'payment_status' ) , 'payment_type' : post . get ( 'payment_type' ) , 'mc_gross' : post . get ( 'mc_gross' ) , 'item_number' : post . get ( 'item_number' ) } paypal_log . error ( ( '[%s] PayPal Data: %s' % ( id , logme ) ) )
log a message along with some of the post info from paypal .