forked from Dniel97/artemis
wacca: fix some logging
This commit is contained in:
parent
0eee2e92a8
commit
8bd361d3e3
@ -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
|
||||
|
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user