wacca: fix some logging

This commit is contained in:
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:
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