Clean up debug logs from try-client-route, keep deps check

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-07 01:16:24 +00:00
parent b90cc59029
commit 1387d97c82
2 changed files with 5 additions and 11 deletions

View File

@@ -647,16 +647,11 @@
(if (nil? target)
(do (log-warn (str "sx:route target not found: " target-sel)) false)
(if (not (deps-satisfied? match))
(do (log-info (str "sx:route deps not loaded for " page-name)) false)
(do
(log-info (str "sx:route has-data=" (get match "has-data")
" type=" (type-of (get match "has-data"))
" page=" page-name))
(do (log-info (str "sx:route deps miss for " page-name)) false)
(if (get match "has-data")
;; Data page: check cache, else resolve asynchronously
(let ((cache-key (page-data-cache-key page-name params))
(cached (page-data-cache-get cache-key)))
(log-info (str "sx:route cache-key=" cache-key " cached=" (not (nil? cached))))
(if cached
;; Cache hit: render immediately
(let ((env (merge closure params cached))
@@ -686,7 +681,7 @@
(do (log-info (str "sx:route server (eval failed) " pathname)) false)
(do
(swap-rendered-content target rendered pathname)
true))))))))))))))
true)))))))))))))
(define bind-client-route-link