10000 FluentRecordFormatter should inherit object · algas/fluent-logger-python@1c986c8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1c986c8

Browse files
committed
10000 FluentRecordFormatter should inherit object
1 parent 566d593 commit 1c986c8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

fluent/handler.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from fluent import sender
1010

11-
class FluentRecordFormatter:
11+
class FluentRecordFormatter(object):
1212
def __init__(self):
1313
self.hostname = socket.gethostname()
1414

@@ -24,9 +24,10 @@ def format(self, record):
2424
# 'sys_funcname' : record.funcName,
2525
# 'sys_exc_info' : record.exc_info,
2626
}
27-
self._structuring(data, record.msg)
2827
# if 'sys_exc_info' in data and data['sys_exc_info']:
2928
# data['sys_exc_info'] = self.formatException(data['sys_exc_info'])
29+
30+
self._structuring(data, record.msg)
3031
return data
3132

3233
def _structuring(self, data, msg):
@@ -45,7 +46,7 @@ def _add_dic(self, data, dic):
4546

4647
class FluentHandler(logging.Handler):
4748
'''
48-
Logging Handler for td-agent.
49+
Logging Handler for fluent.
4950
'''
5051
def __init__(self,
5152
tag,

0 commit comments

Comments
 (0)
0