06/01 Add teller response log
This commit is contained in:
@@ -68,7 +68,7 @@ def callback():
|
||||
try:
|
||||
teller_accounts = get_accounts(access_token)
|
||||
except Exception as e:
|
||||
log.error(f'[teller] get_accounts failed: {e}')
|
||||
log.error('[teller] get_accounts failed during callback: %s', e, exc_info=True)
|
||||
return jsonify({'error': f'Could not fetch accounts: {e}'}), 502
|
||||
|
||||
institution_name = ''
|
||||
@@ -176,6 +176,7 @@ def sync_preview_view(teller_account_id):
|
||||
try:
|
||||
preview = sync_preview(ta)
|
||||
except Exception as e:
|
||||
log.error('[teller] sync_preview failed for teller_account_id=%s: %s', teller_account_id, e, exc_info=True)
|
||||
flash(f'Sync failed: {e}', 'danger')
|
||||
return redirect(url_for('teller.index'))
|
||||
|
||||
@@ -262,7 +263,7 @@ def refresh_balance(teller_account_id):
|
||||
db.session.commit()
|
||||
return jsonify({'balance': available, 'status': 'ok'})
|
||||
except Exception as e:
|
||||
log.error(f'[teller] balance refresh failed: {e}')
|
||||
log.error('[teller] balance refresh failed for teller_account_id=%s: %s', teller_account_id, e, exc_info=True)
|
||||
return jsonify({'error': str(e)}), 502
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user