ai: Don't spam when erroring
This commit is contained in:
parent
869100692a
commit
6ccdaf206d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue