Skip to content

Commit

Permalink
Merge pull request #4 from sataloger/master
Browse files Browse the repository at this point in the history
Use meta instead of context in log handler
  • Loading branch information
respectus authored Apr 12, 2017
2 parents 803ba72 + 8f713e7 commit 758dafb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions logdna/logdna.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ def emit(self, record):
message['hostname'] = opts['hostname']
if 'timestamp' in opts:
message['timestamp'] = opts['timestamp']
if 'context' in opts:
if 'meta' in opts:
if self.index_meta:
message['meta'] = opts['context']
message['meta'] = opts['meta']
else:
message['meta'] = json.dumps(opts['context'])
message['meta'] = json.dumps(opts['meta'])

self.bufferLog(message)

Expand Down

0 comments on commit 758dafb

Please sign in to comment.