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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user