forked from 3wordchant/capsul-flask
trying to fix logging
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
|
||||
from nanoid import generate
|
||||
from flask import current_app
|
||||
|
||||
|
||||
class DBModel:
|
||||
@ -168,7 +169,7 @@ class DBModel:
|
||||
row = self.cursor.fetchone()
|
||||
if row:
|
||||
if int(row[1]) != int(dollars):
|
||||
print(f"""
|
||||
current_app.logger.warning(f"""
|
||||
{payment_type} gave us a completed payment session with a different dollar amount than what we had recorded!!
|
||||
id: {id}
|
||||
account: {row[0]}
|
||||
|
Reference in New Issue
Block a user