Skip to content

Commit 06b5aac

Browse files
committed
improve logging messages
1 parent 084e1d2 commit 06b5aac

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ pub(crate) fn resolve_kubernetes_cluster_domain() -> Result<DomainName, Error> {
7474
tracing::info!("Trying to determine the Kubernetes cluster domain...");
7575
match read_env_var(KUBERNETES_CLUSTER_DOMAIN_ENV) {
7676
Ok(cluster_domain) => {
77-
tracing::info!("Using Kubernetes cluster domain: {cluster_domain}");
77+
tracing::info!("Using Kubernetes cluster domain: '{cluster_domain}'");
7878
return cluster_domain
7979
.clone()
8080
.try_into()
@@ -100,13 +100,16 @@ pub(crate) fn resolve_kubernetes_cluster_domain() -> Result<DomainName, Error> {
100100

101101
// 3. Read and parse 'resolv.conf'. We are looking for the last "search" entry and filter for the shortest
102102
// element in that search line
103+
tracing::info!(
104+
"Running in clusterized environment. Attempting to parse '{RESOLVE_CONF_FILE_PATH}' ..."
105+
);
103106
let resolve_conf_lines =
104107
read_file_from_path(RESOLVE_CONF_FILE_PATH).context(ResolvConfNotFoundSnafu {
105108
resolve_conf_file_path: RESOLVE_CONF_FILE_PATH.to_string(),
106109
})?;
107110

108111
let cluster_domain = parse_resolve_config(resolve_conf_lines)?;
109-
tracing::info!("Using Kubernetes cluster domain: {cluster_domain}");
112+
tracing::info!("Using Kubernetes cluster domain: '{cluster_domain}'");
110113

111114
cluster_domain
112115
.clone()

0 commit comments

Comments
 (0)