-
Notifications
You must be signed in to change notification settings - Fork 17
logging and import cleanup in process_request.clj #822
Conversation
cleans up unused imports makes logs consistently start with lower-case characters
8ee7415
to
d31bd90
Compare
@@ -507,6 +512,8 @@ | |||
[post-process-async-request-response-fn _ instance-request-properties descriptor instance | |||
{:keys [uri] :as request} reason-map reservation-status-promise confirm-live-connection-with-abort | |||
request-state-chan {:keys [status] :as response}] | |||
(when (utils/request->debug-enabled? request) | |||
(log/info "backend response status:" (:status response)"and headers:" (:headers response))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
space missing response)"and headers:"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@@ -364,7 +369,7 @@ | |||
(histograms/update! (metrics/service-histogram service-id "request-content-length") content-length) | |||
(statsd/inc! metric-group "request_content_length" content-length))) | |||
(catch Exception e | |||
(log/error e "Unable to track content-length on request"))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just make all these capitalizations a separate PR. Search systematically. Then it will also cover the (log/error "there was a generic error
from above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are switching to lower-case. This PR changes the instances in this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's open a task to replace log/(error|info|warn) .* ?"[A-Z]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created: #825
Changes proposed in this PR
Why are we making these changes?
Additional logging helps with debugging individual requests. Code cleanup is general hygiene.