We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2774507 commit 502597cCopy full SHA for 502597c
docs/execution/middleware.rst
@@ -56,10 +56,10 @@ logs the time it takes to resolve each field
56
start = timer()
57
return_value = next(root, info, **args)
58
duration = timer() - start
59
- logger.debug("{parent_type}.{field_name}: {duration}".format(
+ logger.debug("{parent_type}.{field_name}: {duration} ms".format(
60
parent_type=root._meta.name if root else '',
61
field_name=info.field_name,
62
- duration=duration
+ duration=round(duration * 1000, 2)
63
))
64
return return_value
65
0 commit comments