Skip to content

Commit fbd05d8

Browse files
committed
Fix support for asctime attribute
1 parent 51f7844 commit fbd05d8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

fluent/handler.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ def format(self, record):
4949
self._structuring(data, record.msg)
5050
return data
5151

52+
def usesTime(self):
53+
for _, value in self._fmt_dict.items():
54+
if value.find('%(asctime)') >= 0:
55+
return True
56+
57+
return False
58+
5259
def _structuring(self, data, msg):
5360
""" Melds `msg` into `data`.
5461

0 commit comments

Comments
 (0)