Remove some debugging.

This commit is contained in:
Sarah 2021-10-17 04:08:15 +02:00
parent 9924094165
commit 6be67a1916
No known key found for this signature in database
GPG key ID: 708F7ACE058F0186

View file

@ -50,10 +50,6 @@ async def narinfo(req: Request) -> Response:
if ni is None: if ni is None:
return Response(content="Not found", status_code=404) return Response(content="Not found", status_code=404)
print(f"=== REMOTE {req.path_params['hash']} ===")
print(ni.dump())
print(f"=== REMOTE END ===")
return Response(content=ni.dump(), status_code=200, media_type="text/x-nix-narinfo") return Response(content=ni.dump(), status_code=200, media_type="text/x-nix-narinfo")
@app.route("/local/{hash:str}.narinfo") @app.route("/local/{hash:str}.narinfo")
@ -61,10 +57,6 @@ async def access_narinfo(req: Request) -> Response:
ni = await l_access.narinfo(req.path_params["hash"]) ni = await l_access.narinfo(req.path_params["hash"])
if ni is None: if ni is None:
return Response(content="Not found", status_code=404) return Response(content="Not found", status_code=404)
print(f"=== LOCAL {req.path_params['hash']} ===")
print(ni.dump())
print(f"=== LOCAL END ===")
return Response(content=ni.dump(), status_code=200, media_type="text/x-nix-narinfo") return Response(content=ni.dump(), status_code=200, media_type="text/x-nix-narinfo")