Skip to content

Commit

Permalink
Fix: Payload loggers (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruuushhh authored Jan 4, 2024
1 parent 3928ddd commit 9a780ea
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/netsuite/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ def post_bill(self, bill: Bill, bill_lineitems: List[BillLineitem]):
try:
bills_payload = self.__construct_bill(bill, bill_lineitems)

logger.info('Workspace: %s, Expense Group: %s Bill Payload - %s, Bill LineItem Payload - %s', bill.expense_group.workspace.id, bill.expense_group.id, bill, bill_lineitems)
logger.info('Workspace: %s, Expense Group: %s Bill Payload - %s', bill.expense_group.workspace.id, bill.expense_group.id, bills_payload)

created_bill = self.connection.vendor_bills.post(bills_payload)
return created_bill
Expand Down Expand Up @@ -1395,7 +1395,7 @@ def post_credit_card_charge(self, credit_card_charge: CreditCardCharge,
credit_card_charges_payload = self.__construct_credit_card_charge(
credit_card_charge, credit_card_charge_lineitem, attachment_links)

logger.info('Workspace: %s, Expense Group: %s Credit Card Charge Payload - %s, Credit Card Charge LineItem Payload - %s', credit_card_charge.expense_group.workspace.id, credit_card_charge.expense_group.id, credit_card_charges_payload, credit_card_charge_lineitem)
logger.info('Workspace: %s, Expense Group: %s Credit Card Charge Payload - %s', credit_card_charge.expense_group.workspace.id, credit_card_charge.expense_group.id, credit_card_charges_payload)

oauth = OAuth1Session(
client_key=consumer_key,
Expand Down Expand Up @@ -1656,7 +1656,7 @@ def post_expense_report(
expense_report_payload = self.__construct_expense_report(expense_report,
expense_report_lineitems)

logger.info('Workspace: %s, Expense Group: %s Expense Report Payload - %s, Expense Report LineItem Payload - %s', expense_report.expense_group.workspace.id, expense_report.expense_group.id, expense_report, expense_report_lineitems)
logger.info('Workspace: %s, Expense Group: %s Expense Report Payload - %s', expense_report.expense_group.workspace.id, expense_report.expense_group.id, expense_report_payload)

created_expense_report = self.connection.expense_reports.post(expense_report_payload)
return created_expense_report
Expand Down Expand Up @@ -1886,7 +1886,7 @@ def post_journal_entry(self, journal_entry: JournalEntry,
try:
journal_entry_payload = self.__construct_journal_entry(journal_entry, journal_entry_lineitems)

logger.info('Workspace: %s, Expense Group: %s Journal Entry Payload - %s, Journal Entry LineItem Payload - %s', journal_entry.expense_group.workspace.id, journal_entry.expense_group.id, journal_entry, journal_entry_lineitems)
logger.info('Workspace: %s, Expense Group: %s Journal Entry Payload - %s', journal_entry.expense_group.workspace.id, journal_entry.expense_group.id, journal_entry_payload)

created_journal_entry = self.connection.journal_entries.post(journal_entry_payload)
return created_journal_entry
Expand Down Expand Up @@ -2044,7 +2044,7 @@ def post_vendor_payment(self, vendor_payment: VendorPayment,
vendor_payment, vendor_payment_lineitems, department, netsuite_class
)

logger.info('Vendor Payment Payload - %s, Vendor Payment LineItem Payload - %s', vendor_payment, vendor_payment_lineitems)
logger.info('Vendor Payment Payload - %s', vendor_payment_payload)

created_vendor_payment = self.connection.vendor_payments.post(vendor_payment_payload)
return created_vendor_payment

0 comments on commit 9a780ea

Please sign in to comment.