@@ -157,10 +157,8 @@ fn get_certificates() -> anyhow::Result<ServerConfig> {
157157 // guaranteed to be `Some` by the require_unless attribute
158158 let cert_file = CliArgs :: args ( ) . cert_file . expect ( "cert_file is required" ) ;
159159 let key_file = CliArgs :: args ( ) . key_file . expect ( "key_file is required" ) ;
160- println ! ( "getcertificates: cert_file: {:?}, key_file: {:?}" , cert_file, key_file) ;
161160 let cert_file = & mut BufReader :: new ( File :: open ( cert_file) ?) ;
162161 let key_file = & mut BufReader :: new ( File :: open ( key_file) ?) ;
163- println ! ( "key_file get cert: {:?}" , key_file) ;
164162 load_certificates ( cert_file, key_file)
165163 }
166164}
@@ -172,12 +170,10 @@ fn get_dummy_certificates() -> anyhow::Result<ServerConfig> {
172170 load_certificates ( cert_file, key_file)
173171}
174172
175- fn load_certificates < R : std:: io:: Read + std :: fmt :: Debug > (
173+ fn load_certificates < R : std:: io:: Read > (
176174 cert_file : & mut BufReader < R > ,
177175 key_file : & mut BufReader < R > ,
178176) -> anyhow:: Result < ServerConfig > {
179- println ! ( "Key file: {:?}" , key_file) ;
180- println ! ( "Cert file: {:?}" , cert_file) ;
181177 let config = ServerConfig :: builder ( ) ;
182178 let cert_chain = certs ( cert_file)
183179 . collect :: < Result < Vec < _ > , _ > > ( )
@@ -190,8 +186,6 @@ fn load_certificates<R: std::io::Read + std::fmt::Debug>(
190186 anyhow:: anyhow!( "Failed to retrieve the rsa private keys from the key file" , )
191187 } ) ?;
192188
193- println ! ( "keys: {:?}" , keys) ;
194-
195189 if keys. is_empty ( ) {
196190 anyhow:: bail!( "No keys found in the keys file" ) ;
197191 }
0 commit comments