@@ -646,11 +646,8 @@ def get_index_config(request: Request):
646646 used by Cargo when searching for and downloading packages.
647647 """
648648
649- print (f"Received request to access { str (request .url )} " )
650-
651649 # Construct URL for Rust router
652650 base_url = f"{ request .url .scheme } ://{ request .url .netloc } " + rust .prefix
653- print (f"Base URL is { base_url } " )
654651
655652 # Construct config file with the necessary endpoints
656653 config = {
@@ -686,7 +683,7 @@ def get_index_package_metadata(
686683 c1 = 3, and c2 is the first character of the package.
687684 """
688685
689- print (f"Received request to access { str (request .url )} " )
686+ logger . debug (f"Received request to access { str (request .url )} " )
690687
691688 # Validate path to the package metadata
692689 if not all (bool (re .fullmatch (r"[\w\-]{1,2}" , char )) for char in (c1 , c2 )):
@@ -723,7 +720,7 @@ def get_index_package_metadata_for_short_package_names(
723720 /1/{package} or /2/{package}.
724721 """
725722
726- print (f"Received request to access { str (request .url )} " )
723+ logger . debug (f"Received request to access { str (request .url )} " )
727724
728725 # Validate path to crate
729726 if n not in ("1" , "2" ):
@@ -754,7 +751,7 @@ def get_rust_api_package_index(
754751 in a JSON object based on the search query given.
755752 """
756753
757- print (f"Received request to access { str (request .url )} " )
754+ logger . debug (f"Received request to access { str (request .url )} " )
758755
759756 # Validate package name
760757 if package and not bool (re .fullmatch (r"[\w\-]+" , package )):
@@ -790,7 +787,7 @@ def get_rust_api_package_info(
790787 to other types of metadata.
791788 """
792789
793- print (f"Received request to access { str (request .url )} " )
790+ logger . debug (f"Received request to access { str (request .url )} " )
794791
795792 # Validate package name
796793 if not bool (re .fullmatch (r"[\w\-]+" , package )):
@@ -814,7 +811,7 @@ def get_rust_api_package_versions(
814811 links for said versions.
815812 """
816813
817- print (f"Received request to access { str (request .url )} " )
814+ logger . debug (f"Received request to access { str (request .url )} " )
818815
819816 # Validate crate name
820817 if not bool (re .fullmatch (r"[\w\-]+" , package )):
@@ -840,7 +837,7 @@ def get_rust_api_package_download(
840837 Obtain and pass through a crate download request for a specific Rust package.
841838 """
842839
843- print (f"Received request to access { str (request .url )} " )
840+ logger . debug (f"Received request to access { str (request .url )} " )
844841
845842 # Validate package name
846843 if not bool (re .fullmatch (r"[\w\-]+" , package )):
@@ -880,7 +877,7 @@ def get_rust_package_download(
880877 Obtain and pass through a crate download request for a Rust package.
881878 """
882879
883- print (f"Received request to access { str (request .url )} " )
880+ logger . debug (f"Received request to access { str (request .url )} " )
884881
885882 # Validate package and version
886883 if not bool (re .fullmatch (r"[\w\-]+" , package )):
@@ -926,7 +923,7 @@ def get_rust_package_crate(
926923 (e.g. https://static.crates.io/crates/anyhow will fail)
927924 """
928925
929- print (f"Received request to access { str (request .url )} " )
926+ logger . debug (f"Received request to access { str (request .url )} " )
930927
931928 # Validate crate and package names
932929 if not bool (re .fullmatch (r"[\w\-]+" , package )):
0 commit comments