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)