Skip to content
Snippets Groups Projects
Commit f7821d60 authored by Petr Špaček's avatar Petr Špaček
Browse files

Merge branch 'stale_verbose' into 'master'

serve_stale: log only in verbose mode

See merge request !564
parents 527a1418 fae9c05f
Branches
Tags
1 merge request!564serve_stale: log only in verbose mode
Pipeline #35665 passed with warnings with stages
in 7 minutes and 12 seconds
......@@ -27,7 +27,9 @@ M.layer = {
local now = ffi.C.kr_now()
local deadline = qry.creation_time_mono + M.timeout
if now > deadline or qry.flags.NO_NS_FOUND then
log('[ ][stal] => no reachable NS, using stale data')
if verbose() then
log('[ ][stal] => no reachable NS, using stale data')
end
qry.stale_cb = M.callback
-- TODO: probably start the same request that doesn't stale-serve,
-- but first we need some detection of non-interactive / internal requests.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment