@@ -92,17 +92,13 @@ impl Certbot {
9292
9393 // Create the credentials file content
9494 let creds_content = if !creds. api_token . is_empty ( ) {
95- println ! ( "Using API token authentication" ) ;
9695 format ! (
97- "# Cloudflare API token credentials for Certbot\n \
98- dns_cloudflare_api_token = {}\n ",
96+ "dns_cloudflare_api_token = {}\n " ,
9997 creds. api_token
10098 )
10199 } else if let ( Some ( ref email) , Some ( ref api_key) ) = ( creds. email . as_ref ( ) , creds. api_key . as_ref ( ) ) {
102- println ! ( "Using email/API key authentication" ) ;
103100 format ! (
104- "# Cloudflare API credentials for Certbot\n \
105- dns_cloudflare_email = {}\n \
101+ "dns_cloudflare_email = {}\n \
106102 dns_cloudflare_api_key = {}\n ",
107103 email, api_key
108104 )
@@ -114,7 +110,6 @@ impl Certbot {
114110 } ;
115111
116112 // Write the credentials file
117- println ! ( "Writing credentials to: {}" , creds_file. display( ) ) ;
118113 std:: fs:: write ( & creds_file, & creds_content) ?;
119114
120115 // Set proper permissions
@@ -126,12 +121,6 @@ impl Certbot {
126121 std:: fs:: set_permissions ( & creds_file, perms) ?;
127122 }
128123
129- // Verify the file was created and contains the credentials
130- match std:: fs:: read_to_string ( & creds_file) {
131- Ok ( contents) => println ! ( "Credentials file contents:\n {}" , contents) ,
132- Err ( e) => println ! ( "Failed to read credentials file: {}" , e) ,
133- }
134-
135124 args. push ( "--dns-cloudflare-credentials" . to_string ( ) ) ;
136125 args. push ( creds_file. to_string_lossy ( ) . to_string ( ) ) ;
137126 }
@@ -163,8 +152,6 @@ impl Certbot {
163152 args. push ( "30" . to_string ( ) ) ;
164153 }
165154
166- println ! ( "Executing command: certbot {}" , args. join( " " ) ) ;
167-
168155 let output = command
169156 . args ( & args)
170157 . stdout ( std:: process:: Stdio :: piped ( ) )
0 commit comments