[GH-ISSUE #648] Log messages at Log level INFO #264

Closed
opened 2026-03-07 23:06:36 +03:00 by kerem · 1 comment
Owner

Originally created by @alienscience on GitHub (Jan 6, 2019).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/648

I have been using the Trust DNS client and it has worked perfectly for me -- many thanks.

I integrated the library into an application with the log level set to INFO and have found that the Trust DNS client writes the most log messages -- more than the application and the other libraries:

12:29:27 [INFO] sending message via: UDP(8.8.8.8:53)

This message is not so useful at the application level -- I know what DNS server I am using. Would it be possible to make this log message in crates/proto/src/xfer/dns_exchange.rs DEBUG rather than INFO?

Many thanks for your help.

Originally created by @alienscience on GitHub (Jan 6, 2019). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/648 I have been using the Trust DNS client and it has worked perfectly for me -- many thanks. I integrated the library into an application with the log level set to INFO and have found that the Trust DNS client writes the most log messages -- more than the application and the other libraries: ``` 12:29:27 [INFO] sending message via: UDP(8.8.8.8:53) ``` This message is not so useful at the application level -- I know what DNS server I am using. Would it be possible to make this log message in `crates/proto/src/xfer/dns_exchange.rs` DEBUG rather than INFO? Many thanks for your help.
kerem closed this issue 2026-03-07 23:06:43 +03:00
Author
Owner

@bluejekyll commented on GitHub (Jan 6, 2019):

Yes! Absolutely. I definitely don’t want to flood people’s logs ;).

Would you want to submit a pr?

Also, as a workaround with env_logger you can explicitly set trust-dns crates to be warn or error.

<!-- gh-comment-id:451750845 --> @bluejekyll commented on GitHub (Jan 6, 2019): Yes! Absolutely. I definitely don’t want to flood people’s logs ;). Would you want to submit a pr? Also, as a workaround with env_logger you can explicitly set `trust-dns` crates to be `warn` or `error`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#264
No description provided.