Skip to content
Snippets Groups Projects

serve_stale: log only in verbose mode

Merged Petr Špaček requested to merge stale_verbose into master
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -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.
Loading