Skip to content

Commit 9875895

Browse files
authored
Downgrade DNS errors to warnings (#17)
* Downgrade DNS errors to warnings * Changelog
1 parent a7f9d9b commit 9875895

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ All notable changes to this project will be documented in this file.
66

77
### Changed
88

9+
- Downgraded DNS errors to warnings ([#17]).
910
- All output is now wrapped in a "containerdebug" span ([#18]).
1011

12+
[#17]: https://github.com/stackabletech/containerdebug/pull/17
1113
[#18]: https://github.com/stackabletech/containerdebug/pull/18
1214

1315
## [0.1.0] - 2024-12-09

src/system_information/network.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ impl SystemNetworkInfo {
6767
.into_iter()
6868
.map(|ptr_record| ptr_record.to_utf8())
6969
.collect();
70-
tracing::info!(%ip, ?hostnames, "performed reverse lookup for IP");
70+
tracing::info!(%ip, ?hostnames, "performed reverse DNS lookup for IP");
7171
Some((ip, hostnames))
7272
}
7373
Err(error) => {
74-
tracing::error!(
74+
tracing::warn!(
7575
%ip,
7676
error = &error as &dyn std::error::Error,
77-
"reverse lookup failed"
77+
"reverse DNS lookup failed"
7878
);
7979
None
8080
}
@@ -89,14 +89,14 @@ impl SystemNetworkInfo {
8989
.filter_map(|hostname| match resolver.lookup_ip(hostname.clone()) {
9090
Ok(result) => {
9191
let ips = result.iter().collect();
92-
tracing::info!(hostname, ?ips, "performed forward lookup for hostname");
92+
tracing::info!(hostname, ?ips, "performed forward DNS lookup for hostname");
9393
Some((hostname, ips))
9494
}
9595
Err(error) => {
96-
tracing::error!(
96+
tracing::warn!(
9797
hostname,
9898
error = &error as &dyn std::error::Error,
99-
"forward lookup failed"
99+
"forward DNS lookup failed"
100100
);
101101
None
102102
}

0 commit comments

Comments
 (0)