It would if that actually worked.
This code:
S.session match {
case Full(session) => logger.warn("[ChangeBlockImpl.render] session:
{}", session)
case Empty => logger.warn("[ChangeBlockImpl.render] no session.")
case f: Failure => logger.warn("[ChangeBlockImpl.render] failed to
get session: {}", f)
}
S.request match {
case Full(request) => logger.warn("[ChangeBlockImpl.render] request
headers: {}", request.headers)
case Empty => logger.error("[ChangeBlockImpl.render] no request.")
case f: Failure => logger.error("[ChangeBlockImpl.render] failure
getting request: {}", f)
}
Produces this output:
2021-04-06 16:02:21,317 WARN [pool-1-thread-3] e.s.l.c.ChangeBlockImpl
[ChangeBlock.scala:59] [ChangeBlockImpl.render] session:
net.liftweb.http.LiftSession@518e1cd3
2021-04-06 16:02:21,317 ERROR [pool-1-thread-3]
e.s.l.c.ChangeBlockImpl [ChangeBlock.scala:65]
[ChangeBlockImpl.render] no request.
--
Family photographs are a critical legacy for
ourselves and our descendants. Protect that
legacy with a digital backup and recovery plan.