mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
Fixed bug #856621, fixed the commented-out minimumLogPriority question.
This commit is contained in:
parent
8997261c59
commit
088d350c9e
@ -480,31 +480,32 @@ def main():
|
|||||||
directory you gave it, but also to stdout. We find this useful for
|
directory you gave it, but also to stdout. We find this useful for
|
||||||
debugging, and also just for the pretty output (it's colored!)""")
|
debugging, and also just for the pretty output (it's colored!)""")
|
||||||
if yn('Would you like to turn off this logging to stdout?') == 'y':
|
if yn('Would you like to turn off this logging to stdout?') == 'y':
|
||||||
confVariables['stdoutLogging'] = False
|
configVariables['stdoutLogging'] = False
|
||||||
else:
|
else:
|
||||||
# conf.something
|
# conf.something
|
||||||
myPrint("""Some terminals may not be able to display the pretty colors
|
myPrint("""Some terminals may not be able to display the pretty colors
|
||||||
logged to stderr. By default, though, we turn the colors off for
|
logged to stderr. By default, though, we turn the colors off for
|
||||||
Windows machines and leave it on for *nix machines.""")
|
Windows machines and leave it on for *nix machines.""")
|
||||||
if yn('Would you like to turn this colorization off?') == 'y':
|
if yn('Would you like to turn this colorization off?') == 'y':
|
||||||
confVariables['colorizedStdoutLogging'] = False
|
configVariables['colorizedStdoutLogging'] = False
|
||||||
|
|
||||||
## # conf.minimumLogPriority
|
# conf.minimumLogPriority
|
||||||
## myPrint("""Your bot can handle debug messages at several priorities,
|
myPrint("""Your bot can handle debug messages at several priorities,
|
||||||
## CRITICAL, in decreasing order of priority. By
|
CRITICAL, in decreasing order of priority. By
|
||||||
## default, your bot will log all of these priorities. You can, however,
|
default, your bot will log all of these priorities. You can, however,
|
||||||
## specify that he only log messages above a certain priority level. Of
|
specify that he only log messages above a certain priority level. Of
|
||||||
## course, all error messages will still be logged.""")
|
course, all error messages will still be logged.""")
|
||||||
## priority = anything('What would you like the minimum priority to be? '
|
priority = anything('What would you like the minimum priority to be? '
|
||||||
## 'Just press enter to accept the default.')
|
'Just press enter to accept the default.')
|
||||||
## while priority and priority not in ['verbose', 'low', 'normal', 'high']:
|
priority = priority.lower()
|
||||||
## myPrint("""That's not a valid priority. Valid priorities include
|
while priority and priority not in ['debug', 'info',
|
||||||
## 'verbose,' 'low,' 'normal,' and 'high,' not including the quotes or
|
'warning', 'error', 'critical']:
|
||||||
## the commas.""")
|
myPrint("""That's not a valid priority. Valid priorities include
|
||||||
## priority = anything('What would you like the minimum priority to be? '
|
'debug', 'info', 'warning', 'error', and 'critical'""")
|
||||||
## 'Just press enter to accept the default.')
|
priority = anything('What would you like the minimum priority to be? '
|
||||||
## if priority:
|
'Just press enter to accept the default.')
|
||||||
## confVariables['minimumLogPriority'] = priority
|
if priority:
|
||||||
|
configVariables['minimumLogPriority']=getattr(logging,priority.upper())
|
||||||
|
|
||||||
if advanced:
|
if advanced:
|
||||||
myPrint("""Here's some stuff you only get to choose if you're an
|
myPrint("""Here's some stuff you only get to choose if you're an
|
||||||
|
Loading…
Reference in New Issue
Block a user