chore: add error line to DNS lookup Router.on_create_check(..)

This commit is contained in:
Romaric Philogene
2020-11-03 10:51:22 +01:00
committed by Pierre Mavro
parent 0512d2e202
commit 552d1ce2f9

View File

@@ -313,7 +313,7 @@ impl crate::cloud_provider::service::Router for Router {
"domain {} is still not ready after several retries",
self.default_domain.as_str()
),
))
));
}
}
@@ -494,12 +494,13 @@ impl Create for Router {
info!("Records from DNS are successfully retrieved.");
OperationResult::Ok(ips)
}
Err(e) => {
Err(err) => {
warn!(
"Failed to retrieve record from DNS '{}', retrying...",
self.default_domain.as_str()
);
OperationResult::Retry(e)
warn!("DNS lookup error: {:?}", err);
OperationResult::Retry(err)
}
}
});