Skip to content

Commit 954bbbc

Browse files
committed
improve tracing messages
1 parent cc570fe commit 954bbbc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

crates/stackable-operator/src/utils/cluster_domain.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,17 @@ pub(crate) fn retrieve_cluster_domain() -> Result<DomainName, Error> {
6262

6363
match env::var(KUBERNETES_CLUSTER_DOMAIN_ENV) {
6464
Ok(cluster_domain) if !cluster_domain.is_empty() => {
65-
tracing::info!(cluster_domain, "Kubernetes cluster domain set by environment variable");
65+
tracing::info!(
66+
cluster_domain,
67+
"Kubernetes cluster domain set by environment variable"
68+
);
6669
return DomainName::from_str(&cluster_domain)
6770
.context(ParseDomainNameSnafu { cluster_domain });
6871
}
6972
_ => {
70-
tracing::info!("The env var '{KUBERNETES_CLUSTER_DOMAIN_ENV}' is not set or empty");
73+
tracing::info!(
74+
"The environment variable \"{KUBERNETES_CLUSTER_DOMAIN_ENV}\" is not set or empty"
75+
);
7176
}
7277
};
7378

0 commit comments

Comments
 (0)