[PR #2469] [MERGED] add hickory-server to the info and debug log line configs #3061

Closed
opened 2026-03-16 11:23:07 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hickory-dns/hickory-dns/pull/2469
Author: @bluejekyll
Created: 9/20/2024
Status: Merged
Merged: 9/20/2024
Merged by: @bluejekyll

Base: mainHead: add_server_to_info_debug_logs


📝 Commits (1)

  • a138ee5 add hickory-server to the info and debug log line configs

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 bin/src/hickory-dns.rs (+1 -1)

📄 Description

This makes sure that the hickory-server crate logs are output with the hickory binary, hickory-dns with the CLI flags. The default behavior is to output INFO level log lines, this PR adds this back to the default behavior:

1726853979:INFO:hickory_server::server::server_future:1017:request:27420 src:UDP://127.0.0.1#11151 QUERY:www.example.com.:A:IN qflags:RD response:NoError rr:1/0/0 rflags:RD,AA

The DEBUG level output with the -d or --debug flag is:

1726854074:DEBUG:hickory_server::server::server_future:110:received udp request from: 127.0.0.1:46992
1726854074:DEBUG:hickory_server::server::server_future:1070:request:20266 src:UDP://127.0.0.1#46992 type:QUERY dnssec:false QUERY:www.example.com.:A:IN qflags:RD
1726854074:DEBUG:hickory_server::authority::catalog:146:query received: 20266
1726854074:DEBUG:hickory_server::authority::catalog:397:searching authorities for: www.example.com.
1726854074:DEBUG:hickory_server::authority::catalog:397:searching authorities for: example.com.
1726854074:DEBUG:hickory_server::authority::catalog:430:request: 20266 found authority: example.com.; performing name: www.example.com. type: A class: IN
1726854074:DEBUG:hickory_server::authority::authority_object:210:performing name: www.example.com. type: A class: IN on example.com.
1726854074:DEBUG:hickory_server::store::in_memory::authority:1363:searching InMemoryAuthority for: name: www.example.com. type: A class: IN
1726854074:DEBUG:hickory_server::server::response_handler:106:response: 20266 response_code: No Error
1726854074:INFO:hickory_server::server::server_future:1017:request:20266 src:UDP://127.0.0.1#46992 QUERY:www.example.com.:A:IN qflags:RD response:NoError rr:1/0/0 rflags:RD,AA

the -q or --quiet still works properly by disabling all output. The environment variable configs can be used to override these behaviors.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hickory-dns/hickory-dns/pull/2469 **Author:** [@bluejekyll](https://github.com/bluejekyll) **Created:** 9/20/2024 **Status:** ✅ Merged **Merged:** 9/20/2024 **Merged by:** [@bluejekyll](https://github.com/bluejekyll) **Base:** `main` ← **Head:** `add_server_to_info_debug_logs` --- ### 📝 Commits (1) - [`a138ee5`](https://github.com/hickory-dns/hickory-dns/commit/a138ee5728824a1207934fdb587948d37a5a0356) add hickory-server to the info and debug log line configs ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `bin/src/hickory-dns.rs` (+1 -1) </details> ### 📄 Description This makes sure that the `hickory-server` crate logs are output with the hickory binary, `hickory-dns` with the CLI flags. The default behavior is to output INFO level log lines, this PR adds this back to the default behavior: ``` 1726853979:INFO:hickory_server::server::server_future:1017:request:27420 src:UDP://127.0.0.1#11151 QUERY:www.example.com.:A:IN qflags:RD response:NoError rr:1/0/0 rflags:RD,AA ``` The DEBUG level output with the `-d` or `--debug` flag is: ``` 1726854074:DEBUG:hickory_server::server::server_future:110:received udp request from: 127.0.0.1:46992 1726854074:DEBUG:hickory_server::server::server_future:1070:request:20266 src:UDP://127.0.0.1#46992 type:QUERY dnssec:false QUERY:www.example.com.:A:IN qflags:RD 1726854074:DEBUG:hickory_server::authority::catalog:146:query received: 20266 1726854074:DEBUG:hickory_server::authority::catalog:397:searching authorities for: www.example.com. 1726854074:DEBUG:hickory_server::authority::catalog:397:searching authorities for: example.com. 1726854074:DEBUG:hickory_server::authority::catalog:430:request: 20266 found authority: example.com.; performing name: www.example.com. type: A class: IN 1726854074:DEBUG:hickory_server::authority::authority_object:210:performing name: www.example.com. type: A class: IN on example.com. 1726854074:DEBUG:hickory_server::store::in_memory::authority:1363:searching InMemoryAuthority for: name: www.example.com. type: A class: IN 1726854074:DEBUG:hickory_server::server::response_handler:106:response: 20266 response_code: No Error 1726854074:INFO:hickory_server::server::server_future:1017:request:20266 src:UDP://127.0.0.1#46992 QUERY:www.example.com.:A:IN qflags:RD response:NoError rr:1/0/0 rflags:RD,AA ``` the `-q` or `--quiet` still works properly by disabling all output. The environment variable configs can be used to override these behaviors. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-16 11:23:07 +03:00
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#3061
No description provided.