Use stdout instead of logger

This commit is contained in:
PCoder 2019-04-03 06:36:28 +02:00
parent b7dd4acb07
commit 3eaa53ca78

View file

@ -38,9 +38,7 @@ class Command(BaseCommand):
created=created_gt created=created_gt
) )
all_invoices = all_invoices_response['response_object'] all_invoices = all_invoices_response['response_object']
logger.debug( self.stdout.write(self.style.SUCCESS("Obtained {} invoices".format(len(all_invoices))))
"Obtained {} invoices".format(len(all_invoices))
)
for invoice in all_invoices: for invoice in all_invoices:
MonthlyHostingBill.create( MonthlyHostingBill.create(
invoice, stripe_customer=user.stripecustomer invoice, stripe_customer=user.stripecustomer