mirror of
https://gitea.tendokyu.moe/Hay1tsme/artemis.git
synced 2026-02-13 11:17:28 +08:00
wacca: fix some logging
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user