From 8bd361d3e37e21ea77cac86e9c996ddb72bcec4f Mon Sep 17 00:00:00 2001 From: Kevin Trocolli Date: Sun, 19 Nov 2023 12:15:57 -0500 Subject: [PATCH] wacca: fix some logging --- titles/wacca/index.py | 4 ++-- titles/wacca/lily.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/titles/wacca/index.py b/titles/wacca/index.py index 0c9798a..7277fd8 100644 --- a/titles/wacca/index.py +++ b/titles/wacca/index.py @@ -187,9 +187,9 @@ class WaccaServlet: ) if self.logger.level == logging.DEBUG: tp, val, tb = sys.exc_info() - traceback.print_exception(tp, val, tb, limit=1) + traceback.print_exception(tp, val, tb, limit=3) with open("{0}/{1}.log".format(self.core_cfg.server.log_dir, "wacca"), "a") as f: - traceback.print_exception(tp, val, tb, limit=1, file=f) + traceback.print_exception(tp, val, tb, limit=3, file=f) resp = BaseResponse() resp.status = 1 diff --git a/titles/wacca/lily.py b/titles/wacca/lily.py index 71ff27d..33928ec 100644 --- a/titles/wacca/lily.py +++ b/titles/wacca/lily.py @@ -426,7 +426,7 @@ class WaccaLily(WaccaS): except Exception: self.logger.error( - f"{__name__} Failed to load item {item['item_id']} for user {profile['user']}" + f"Failed to load item {item['item_id']} for user {profile['user']}" ) resp.seasonInfo.level = profile["xp"]