engine: util: Add a debug utility

This is useful for some patches. Let's see if I can remember to use and
improve it!
This commit is contained in:
James Shubin
2025-05-05 22:29:45 -04:00
parent 267bcc144b
commit ae1d9b94d4
2 changed files with 32 additions and 0 deletions

View File

@@ -184,6 +184,7 @@ func (obj *Exporter) Export(ctx context.Context, res engine.Res) (bool, error) {
// TODO: Do we want to log more information about where this exports to?
obj.Logf("%s", res)
//obj.Logf("%s\n", engineUtil.DebugStructFields(res)) // debug
// XXX: Add a TTL if requested
b, err := obj.World.ResExport(ctx, resourceExports) // do it!
if err != nil {