diff --git a/logdna/logdna.py b/logdna/logdna.py index 99f3a8f..806208d 100644 --- a/logdna/logdna.py +++ b/logdna/logdna.py @@ -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)