mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Rename misc.log to messages.log
This commit is contained in:
parent
560434616a
commit
eab237da47
@ -357,15 +357,15 @@ if not os.path.exists(pluginLogDir):
|
|||||||
os.mkdir(pluginLogDir, 0755)
|
os.mkdir(pluginLogDir, 0755)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
miscLogFilename = os.path.join(_logDir, 'misc.log')
|
messagesLogFilename = os.path.join(_logDir, 'messages.log')
|
||||||
_handler = BetterFileHandler(miscLogFilename)
|
_handler = BetterFileHandler(messagesLogFilename)
|
||||||
except EnvironmentError, e:
|
except EnvironmentError, e:
|
||||||
raise SystemExit, \
|
raise SystemExit, \
|
||||||
'Error opening miscellaneous logfile (%s). ' \
|
'Error opening messages logfile (%s). ' \
|
||||||
'Generally, this is because you are running Supybot in a directory ' \
|
'Generally, this is because you are running Supybot in a directory ' \
|
||||||
'you don\'t have permissions to add files in, or you\'re running ' \
|
'you don\'t have permissions to add files in, or you\'re running ' \
|
||||||
'Supybot as a different user than you normal do. The original ' \
|
'Supybot as a different user than you normal do. The original ' \
|
||||||
'error was: %s' % (miscLogFilename, utils.gen.exnToString(e))
|
'error was: %s' % (messagesLogFilename, utils.gen.exnToString(e))
|
||||||
_handler.setFormatter(formatter)
|
_handler.setFormatter(formatter)
|
||||||
_handler.setLevel(-1)
|
_handler.setLevel(-1)
|
||||||
class PluginLogFilter(logging.Filter):
|
class PluginLogFilter(logging.Filter):
|
||||||
|
Loading…
Reference in New Issue
Block a user