mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #1554] [MERGED] Simplify server logging to single logline per request #2413
Labels
No labels
blocked
breaking-change
bug
bug:critical
bug:tests
cleanup
compliance
compliance
compliance
crate:all
crate:client
crate:native-tls
crate:proto
crate:recursor
crate:resolver
crate:resolver
crate:rustls
crate:server
crate:util
dependencies
docs
duplicate
easy
easy
enhance
enhance
enhance
feature:dns-over-https
feature:dns-over-quic
feature:dns-over-tls
feature:dnsssec
feature:global_lb
feature:mdns
feature:tsig
features:edns
has workaround
ops
perf
platform:WASM
platform:android
platform:fuchsia
platform:linux
platform:macos
platform:windows
pull-request
question
test
tools
tools
trust
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hickory-dns#2413
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hickory-dns/hickory-dns/pull/1554
Author: @bluejekyll
Created: 9/20/2021
Status: ✅ Merged
Merged: 10/7/2021
Merged by: @bluejekyll
Base:
main← Head:simplified-logging📝 Commits (10+)
d2b6649Simplify server logging to single logline per request7de488cupdate cangelog for server request logging32c25eacleanup use statements80dc425Change response code to Debug format in log-lineeeacdb6simplify request handling by verifying query formb2d4359cleanup flag printing74cc323hoist return out of match statementb649ea9cleanup request handling by enforcing single query during parsingec04265refactor write! of strings to Formatter::write_str8451f74fix SyncClient::send and add FormErr test📊 Changes
27 files changed (+937 additions, -417 deletions)
View changed files
📝
CHANGELOG.md(+4 -0)📝
crates/proto/src/error.rs(+26 -3)📝
crates/proto/src/https/error.rs(+1 -1)📝
crates/proto/src/https/https_client_stream.rs(+1 -1)📝
crates/proto/src/op/header.rs(+80 -20)📝
crates/proto/src/op/message.rs(+25 -28)📝
crates/proto/src/op/op_code.rs(+20 -16)📝
crates/proto/src/rr/rdata/svcb.rs(+8 -10)📝
crates/proto/src/xfer/dns_response.rs(+45 -12)📝
crates/resolver/src/config.rs(+1 -1)📝
crates/server/src/authority/catalog.rs(+138 -130)📝
crates/server/src/authority/message_request.rs(+97 -49)📝
crates/server/src/authority/message_response.rs(+37 -20)📝
crates/server/src/server/https_handler.rs(+15 -19)📝
crates/server/src/server/mod.rs(+3 -1)➕
crates/server/src/server/protocol.rs(+37 -0)📝
crates/server/src/server/request_handler.rs(+96 -3)📝
crates/server/src/server/response_handler.rs(+22 -13)📝
crates/server/src/server/server_future.rs(+170 -44)📝
crates/server/src/store/forwarder/authority.rs(+3 -3)...and 7 more files
📄 Description
Fixes: #1525
@williamdes, This PR should help with the above issue. There was a big refactor I needed to do for this, but we should see a single logline on requests example:
I think we can use this opportunity to cleanup some of the Display implementations for these various sections. let me know what you think. As an example, the Display for the response code is multi-word right now, that might not be desirable? Also, do we want to the code+description instead of just the description there?
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.