adjust logs/errors
All checks were successful
Run Check Script / check (pull_request) Successful in 1m14s
All checks were successful
Run Check Script / check (pull_request) Successful in 1m14s
This commit is contained in:
parent
57c098a6d8
commit
c99e9018af
@ -52,13 +52,15 @@ impl<T: Topology> Interpret<T> for DiscoverInventoryAgentInterpret {
|
||||
debug!("Discovery event {event:?}");
|
||||
match event {
|
||||
DiscoveryEvent::ServiceResolved(service) => {
|
||||
info!("Found instance {service:?}");
|
||||
let service_name = service.fullname.clone();
|
||||
info!("Found service {service_name}");
|
||||
|
||||
let address = match service.get_addresses().iter().next() {
|
||||
Some(address) => address,
|
||||
None => {
|
||||
return Err(
|
||||
"Could not find address for service {service:?}".to_string()
|
||||
);
|
||||
return Err(format!(
|
||||
"Could not find address for service {service_name}"
|
||||
));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user