Skip to content

Commit

Permalink
Fix formatter name typo
Browse files Browse the repository at this point in the history
  • Loading branch information
iky committed Aug 23, 2017
1 parent 1ce6533 commit 7e20f5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nameko_tracer/formatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def format(self, record):
return serialise(getattr(record, constants.TRACE_KEY))


class ElasticisearchDocumentFormatter(JSONFormatter):
class ElasticsearchDocumentFormatter(JSONFormatter):
""" Format trace as JSON which can be fed to Elasticsearch as a document
Request and response data fields of the document are serialized as JSON
Expand Down
2 changes: 1 addition & 1 deletion tests/test_formatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_elasticsearch_document_serialiser():
log_record = Mock()
setattr(log_record, constants.TRACE_KEY, trace)

document = formatters.ElasticisearchDocumentFormatter().format(log_record)
document = formatters.ElasticsearchDocumentFormatter().format(log_record)

document = json.loads(document)

Expand Down

0 comments on commit 7e20f5c

Please sign in to comment.