Skip to content

Commit eb4a17d

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

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
@@ -56,7 +56,7 @@ def _structuring(self, data, msg):
5656
try:
5757
self._add_dic(data, json.loads(str(msg)))
5858
except (ValueError, json.JSONDecodeError):
59-
pass
59+
self._add_dic(data, {'message': msg})
6060

6161
@staticmethod
6262
def _add_dic(data, dic):

0 commit comments

Comments
 (0)