wacca: fix some logging

This commit is contained in:
Hay1tsme 2023-11-19 12:15:57 -05:00
parent 0eee2e92a8
commit 8bd361d3e3
2 changed files with 3 additions and 3 deletions

View File

@ -187,9 +187,9 @@ class WaccaServlet:
) )
if self.logger.level == logging.DEBUG: if self.logger.level == logging.DEBUG:
tp, val, tb = sys.exc_info() 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: 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 = BaseResponse()
resp.status = 1 resp.status = 1

View File

@ -426,7 +426,7 @@ class WaccaLily(WaccaS):
except Exception: except Exception:
self.logger.error( 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"] resp.seasonInfo.level = profile["xp"]