payment service adapt logging

This commit is contained in:
Tobias Traxel 2019-12-11 10:18:14 +01:00
parent be4d7913ff
commit 2c0f84868a

View file

@ -90,6 +90,7 @@ module.exports = function charge (request) {
// publish transaction to our bigquery database - if we have a bigquery client // publish transaction to our bigquery database - if we have a bigquery client
if (bigqueryClient) { if (bigqueryClient) {
logger.info('sending data to Big Query');
const rows = [ const rows = [
{ {
"amount": amount.units + (amount.nanos / 1000000000), "amount": amount.units + (amount.nanos / 1000000000),
@ -107,7 +108,7 @@ module.exports = function charge (request) {
.insert(rows); .insert(rows);
} }
logger.info(`Transaction processed: ${cardType} ending ${cardNumber.substr(-4)} \ logger.info(`XXXTransaction processed: ${cardType} ending ${cardNumber.substr(-4)} \
Amount: ${amount.currency_code}${amount.units}.${amount.nanos}`); Amount: ${amount.currency_code}${amount.units}.${amount.nanos}`);
return { transaction_id: uuid() }; return { transaction_id: uuid() };