Skip to content

Commit 5082d68

Browse files
committed
Fix support for asctime attribute
1 parent 7cf04aa commit 5082d68

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
@@ -44,6 +44,13 @@ def format(self, record):
4444
self._structuring(data, record.msg)
4545
return data
4646

47+
def usesTime(self):
48+
for _, value in self._fmt_dict.items():
49+
if value.find('%(asctime)') >= 0:
50+
return True
51+
52+
return False
53+
4754
def _structuring(self, data, msg):
4855
""" Melds `msg` into `data`.
4956

0 commit comments

Comments
 (0)