From ede3642efe4985fb0f578344f182548f3555a600 Mon Sep 17 00:00:00 2001 From: Aaron Kimbre Date: Sun, 13 Mar 2022 07:03:50 -0500 Subject: [PATCH] fix logging issues --- app/reports.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/reports.py b/app/reports.py index 1ee5d6b..7ce6263 100644 --- a/app/reports.py +++ b/app/reports.py @@ -126,7 +126,7 @@ def gen_currency_report(): ) report_data[CharacterInfo.query.filter(CharacterInfo.id == character.id).first().name] = int(character_json["obj"]["char"]["attr_cc"]) except Exception as e: - current_app.logger.error(f"REPORT::CURRENCY - ERROR PARSING CHARACTER {char_xml.id}") + current_app.logger.error(f"REPORT::CURRENCY - ERROR PARSING CHARACTER {character.id}") current_app.logger.error(f"REPORT::CURRENCY - {e}") new_report = Reports( @@ -174,7 +174,7 @@ def gen_uscore_report(): ) report_data[CharacterInfo.query.filter(CharacterInfo.id == character.id).first().name] = int(character_json["obj"]["char"]["attr_ls"]) except Exception as e: - current_app.logger.error(f"REPORT::U-SCORE - ERROR PARSING CHARACTER {char_xml.id}") + current_app.logger.error(f"REPORT::U-SCORE - ERROR PARSING CHARACTER {character.id}") current_app.logger.error(f"REPORT::U-SCORE - {e}") new_report = Reports(