Rename misc.log to messages.log

This commit is contained in:
James Vega 2005-03-11 18:06:18 +00:00
parent 560434616a
commit eab237da47

View File

@ -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):