From da38a7b59bfc5f606de4417c5c60c6c9e00bb9f8 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 2 Oct 2003 04:54:25 +0000 Subject: [PATCH] Changed minimumDebugPriority to minimumPriority (since it's set in the debug module now anyway). --- scripts/supybot-wizard.py | 6 +++--- src/debug.py | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/supybot-wizard.py b/scripts/supybot-wizard.py index c8bd915d1..5e25e5f89 100755 --- a/scripts/supybot-wizard.py +++ b/scripts/supybot-wizard.py @@ -17,7 +17,7 @@ import debug import utils import ircutils -debug.minimumDebugPriority = 'high' +debug.minimumPriority = 'high' useColor = False @@ -469,7 +469,7 @@ if __name__ == '__main__': if yn('Would you like to turn this colorization off?') == 'y': debugVariables['colorterm'] = False - # debug.minimumDebugPriority + # debug.minimumPriority myPrint("""Your bot can handle debug messages at four priorities, 'high,' 'normal,' 'low,' and 'verbose,' in decreasing order of priority. By default, your bot will log all of these priorities. You can, however, @@ -484,7 +484,7 @@ if __name__ == '__main__': priority = anything('What would you like the minimum priority to be? ' 'Just press enter to accept the default.') if priority: - debugVariables['minimumDebugPriority'] = priority + debugVariables['minimumPriority'] = priority if advanced: myPrint("""Here's some stuff you only get to choose if you're an diff --git a/src/debug.py b/src/debug.py index be549bd8b..bc21e04c0 100644 --- a/src/debug.py +++ b/src/debug.py @@ -75,9 +75,9 @@ else: # printf: True if printf debugging messages should be printed. printf = False -# minimumDebugPriority: Lowest priority logged; -# One of {'verbose', 'low', 'normal', 'high'}. -minimumDebugPriority = 'verbose' +# minimumPriority: Lowest priority logged; +# One of {'verbose', 'low', 'normal', 'high'}. +minimumPriority = 'verbose' # deadlyExceptions: Exceptions that should cause immediate failure. deadlyExceptions = [KeyboardInterrupt, SystemExit] @@ -197,7 +197,7 @@ def unrecoverableException(): exit(-1) def msg(s, priority='low'): - if priorities[priority] >= priorities[minimumDebugPriority]: + if priorities[priority] >= priorities[minimumPriority]: if stderr: if colorterm: sys.stderr.write(priorityColors.get(priority))