diff --git a/nomad/app/v1/main.py b/nomad/app/v1/main.py index af4def92478e5e50ecd01f38c3e3fc652838063c..3ab59c3e49e4fced8fc69079d70c1afe64e09365 100644 --- a/nomad/app/v1/main.py +++ b/nomad/app/v1/main.py @@ -64,7 +64,7 @@ async def profile_request(request: Request, call_next): if not request.query_params.get('__profile__', False): return await call_next(request) - with Profiler(async_mode='enabled') as profiler: + with Profiler(async_mode='strict') as profiler: await call_next(request) return HTMLResponse(profiler.output_html())