diff --git a/tornado/log.py b/tornado/log.py index a4c74234..36c3dd40 100644 --- a/tornado/log.py +++ b/tornado/log.py @@ -156,7 +156,7 @@ class LogFormatter(logging.Formatter): record.asctime = self.formatTime(record, self.datefmt) if record.levelno in self._colors: - record.color = self._colors.get(record.levelno, '') + record.color = self._colors[record.levelno] record.end_color = self._normal else: record.color = record.end_color = ''