engine: graph, resources: Clean up log messages

The idea is to have a better user experience in the terminal.
This commit is contained in:
James Shubin
2024-08-06 15:12:10 -04:00
parent e94f39bf2c
commit 80178422db
13 changed files with 49 additions and 48 deletions

View File

@@ -96,10 +96,9 @@ func (obj *PrintRes) Watch(ctx context.Context) error {
// CheckApply method for Print resource. Does nothing, returns happy!
func (obj *PrintRes) CheckApply(ctx context.Context, apply bool) (bool, error) {
obj.init.Logf("CheckApply: %t", apply)
if val, exists := obj.init.Recv()["msg"]; exists && val.Changed {
// if we received on Msg, and it changed, log message
obj.init.Logf("CheckApply: Received `msg` of: %s", obj.Msg)
obj.init.Logf("received `msg` of: %s", obj.Msg)
}
var refresh = obj.init.Refresh()