summaryrefslogtreecommitdiffhomepage
path: root/control/controlknobs
diff options
context:
space:
mode:
authorPaul Scott <paul@tailscale.com>2024-05-13 17:43:24 +0100
committerPaul Scott <408401+icio@users.noreply.github.com>2024-07-16 15:52:23 +0100
commit646990a7d0da5b80c8761bc4dfff2fd5170bf76b (patch)
tree206379e5a5a44fe5803c16bdaa05e073b5fbfe35 /control/controlknobs
parent8882c6b730a4663dac059666146aec5f4045b877 (diff)
downloadtailscale-646990a7d0da5b80c8761bc4dfff2fd5170bf76b.tar.xz
tailscale-646990a7d0da5b80c8761bc4dfff2fd5170bf76b.zip
tsweb: log once per request
StdHandler/retHandler would previously emit one log line for each request. If there were multiple StdHandler in the chain, there would be one log line per instance of retHandler. With this change, only the outermost StdHandler/logHandler actually logs the request or invokes OnStart or OnCompletion callbacks. The error-rendering part of retHandler lives on in errorHandler, and errorHandler passes those errors up the stack to logHandler through a callback that logHandler places in the request.Context(). Updates tailscale/corp#19999 Signed-off-by: Paul Scott <paul@tailscale.com>
Diffstat (limited to 'control/controlknobs')
0 files changed, 0 insertions, 0 deletions