Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<release-note> Add lots of new debug categories suitable for net.aserve::debug-on and net.aserve::debug-off. See documentation for more. </release-note> Also, add log1* (unexported for now), a generic function of (logger category level message) args through which all logging eventually goes through. The value of logger is from the logger slot of the current wserver if the log comes from a server. For the client, it's the whatever is in *logger*. This is patch 13. <documentation> Note there are no :xmit-proxy-server-request-* categories, because at the time of reading the request it's not yet known whether it's the going to be proxied so these show up as :xmit-server-request-*. Complicate the simple tree of debug categories into a DAG: :xmit-server-request-command is a subcategory of each of :xmit :server :request and :command. To turn on server side logging without the bodies you'd do: (net.aserve::debug-on :server) (net.aserve::debug-off :body) The list of debug categories: :all off The mother of all debug features. :notrap off If set than errors in handlers cause a break loop to be entered. (parent categories: :all) :zoom-on-error off If set then print a zoom to the vhost-error-stream when an error occurs in a handler. (parent categories: :all) :log off Category of features that write some kind of log. (parent categories: :all) :xmit off Category of features that log the traffic between clients, servers. (parent categories: :log) :info off General information. (parent categories: :log) :client off Category of features that log client communication. (parent categories: :all) :server off Category of features that log server communication. (parent categories: :all) :proxy off Category of features that log proxy communication. (parent categories: :all) :request off Category of features that log requests. (parent categories: :all) :response off Category of features that log responses. (parent categories: :all) :command off Category of features that log http request commands. (parent categories: :all) :headers off Category of features that log request/response headers. (parent categories: :all) :body off Category of features that log request/response bodies. (parent categories: :all) :xmit-client-request-command off If set then print the client request commands. (parent categories: :xmit, :client, :request, :command) :xmit-client-request-headers off If set then print the client request headers. (parent categories: :xmit, :client, :request, :headers) :xmit-client-request-body off If set then print the client request bodies. (parent categories: :xmit, :client, :request, :body) :xmit-client-response-headers off If set then print the client response headers. (parent categories: :xmit, :client, :response, :headers) :xmit-client-response-body off If set then print the client response bodies. (parent categories: :xmit, :client, :response, :body) :xmit-server-request-command off If set then print the server request commands. (parent categories: :xmit, :server, :request, :command) :xmit-server-request-headers off If set then print the server request headers. (parent categories: :xmit, :server, :request, :headers) :xmit-server-request-body off If set then print the server request bodies. (parent categories: :xmit, :server, :request, :body) :xmit-server-response-headers off If set then print the server response headers. (parent categories: :xmit, :server, :response, :headers) :xmit-server-response-body off If set then print the server response bodies. (parent categories: :xmit, :server, :response, :body) :xmit-proxy-client-request-command off If set then print the proxy request command sent to the real server. (parent categories: :xmit, :proxy, :client, :request, :command) :xmit-proxy-client-request-headers off If set then print the proxy request headers sent to the real server. (parent categories: :xmit, :proxy, :client, :request, :headers) :xmit-proxy-client-request-body off If set then print the proxy request bodies sent to the real server. (parent categories: :xmit, :proxy, :client, :request, :body) :xmit-proxy-client-response-headers off If set then print the proxy response headers sent by the real server. (parent categories: :xmit, :proxy, :client, :response, :headers) :xmit-proxy-client-response-body off If set then print the proxy response bodies sent by the real server. (parent categories: :xmit, :proxy, :client, :response, :body) :xmit-proxy-server-response-headers off If set then print the proxy response headers sent to the client. (parent categories: :xmit, :proxy, :server, :response, :headers) :xmit-proxy-server-response-body off If set then print the proxy response bodies sent by the client. (parent categories: :xmit, :proxy, :server, :response, :body) </documentation> Change-Id: I3209c64bfc3f25bc12cafe9cf4be7f7d0029091b
- Loading branch information