mirror of
https://github.com/moby/buildkit.git
synced 2026-08-09 09:11:45 +00:00
This adds trace logs to the solver's cache manager to assist debugging cache misses+hits. It also replace the LazyStackTrace struct with a function that returns a stack trace string only if trace level is enabled, an empty string otherwise. This makes it easier to use with logrus hooks that pass the fields around to different goroutines without needing to try to "unlazy" the fields first. Signed-off-by: Erik Sipsma <erik@sipsma.dev>