Skip to content

Commit f54dda2

Browse files
committed
Add compatibility with regular (non structured) logging usage
Part of fluent#8.
1 parent e43a0a6 commit f54dda2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fluent/handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def _structuring(self, data, msg):
5151
try:
5252
self._add_dic(data, json.loads(str(msg)))
5353
except (ValueError, json.JSONDecodeError):
54-
pass
54+
self._add_dic(data, {'message': msg})
5555

5656
@staticmethod
5757
def _add_dic(data, dic):

0 commit comments

Comments
 (0)