mirror of
				https://github.com/graphql-python/graphene.git
				synced 2025-10-31 16:07:27 +03:00 
			
		
		
		
	Merge pull request #653 from dkleissa/master
Update middleware example to support introspection
This commit is contained in:
		
						commit
						e94716d94a
					
				|  | @ -57,7 +57,7 @@ logs the time it takes to resolve each field | ||||||
|         return_value = next(root, info, **args) |         return_value = next(root, info, **args) | ||||||
|         duration = timer() - start |         duration = timer() - start | ||||||
|         logger.debug("{parent_type}.{field_name}: {duration} ms".format( |         logger.debug("{parent_type}.{field_name}: {duration} ms".format( | ||||||
|             parent_type=root._meta.name if root else '', |             parent_type=root._meta.name if root and hasattr(root, '_meta') else '', | ||||||
|             field_name=info.field_name, |             field_name=info.field_name, | ||||||
|             duration=round(duration * 1000, 2) |             duration=round(duration * 1000, 2) | ||||||
|         )) |         )) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user