Remove some debug output

This commit is contained in:
Valentin Brandl 2019-07-28 20:45:58 +02:00
parent 0d1206fed2
commit fa4bf3e6dc
No known key found for this signature in database
GPG Key ID: 30D341DD34118D7D

View File

@ -19,7 +19,6 @@ impl Cloudflare {
) -> impl Future<Item = HttpResponse, Error = Error> {
let payload = CfPurgeRequest::singleton::<T>(file);
println!("{:#?}", payload);
eprintln!("{:#?}", payload);
client
.post(format!(
"https://api.cloudflare.com/client/v4/zones/{}/purge_cache",
@ -73,15 +72,14 @@ struct CfPurgeRequest {
impl CfPurgeRequest {
fn singleton<T: Service>(file: &str) -> Self {
let url = format!(
"https://{}/{}/{}",
statics::HOSTNAME.as_str(),
T::path(),
file
);
println!("{}", url);
eprintln!("{}", url);
Self { files: vec![url] }
Self {
files: vec![format!(
"https://{}/{}/{}",
statics::HOSTNAME.as_str(),
T::path(),
file
)],
}
}
}