From 6ccdaf206d8f30a21927bd13d3c8cb5e4e966cef Mon Sep 17 00:00:00 2001 From: Little Cat Date: Fri, 9 Jul 2021 02:54:31 -0300 Subject: [PATCH] ai: Don't spam when erroring --- otp/ai/AIBase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otp/ai/AIBase.py b/otp/ai/AIBase.py index c9ff8c7..0e44837 100644 --- a/otp/ai/AIBase.py +++ b/otp/ai/AIBase.py @@ -24,7 +24,7 @@ class AIBase: __builtins__['__dev__'] = self.config.GetBool('want-dev', 0) __builtins__['__astron__'] = self.config.GetBool('astron-support', 1) __builtins__['__execWarnings__'] = self.config.GetBool('want-exec-warnings', 0) - logStackDump = (self.config.GetBool('log-stack-dump', (not __dev__)) or self.config.GetBool('ai-log-stack-dump', (not __dev__))) + logStackDump = (self.config.GetBool('log-stack-dump', (not __debug__)) or self.config.GetBool('ai-log-stack-dump', (not __debug__))) uploadStackDump = self.config.GetBool('upload-stack-dump', 0) if logStackDump or uploadStackDump: ExceptionVarDump.install(logStackDump, uploadStackDump)