Skip to content

Commit

Permalink
Minor code formatting changes to logging module
Browse files Browse the repository at this point in the history
  • Loading branch information
jamestaylr committed Aug 3, 2015
1 parent c6d57d5 commit 3b73263
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/modules/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class WebSocketLogger(logging.Handler):
A handler class which allows the cursor to stay on
one line for selected messages
"""

def __init__(self, listener):
super().__init__()
self.listener = listener
Expand All @@ -32,7 +32,6 @@ def __init__(self, screen):
for i in range(0, curses.COLORS):
curses.init_pair(i + 1, i, -1)


def emit(self, record):
try:
msg = self.format(record)
Expand Down Expand Up @@ -61,6 +60,3 @@ def get_color_pair(self, level):
index = str(level)
#20 : 28
return curses.color_pair({'10': 83, '20': 39, '30': 245, '40': 167, '50': 197}[index])



0 comments on commit 3b73263

Please sign in to comment.