This commit is contained in:
2025-07-23 18:41:30 +08:00
parent a9add11578
commit 708709e6c2
13 changed files with 89 additions and 16 deletions

View File

@@ -247,6 +247,20 @@ func run(ctx context.Context, manager Manager, config Config) error {
}
ttrpcAddress := os.Getenv(ttrpcAddressEnv)
a := log.Fields{
"mzq-test": true,
"id": id,
"name": name,
"config": fmt.Sprintf("%+v", config),
"signals": fmt.Sprintf("%+v", signals),
"ttrpcAddress": ttrpcAddress,
}
log.G(ctx).WithFields(a).Info("shim.go run")
publisher, err := NewPublisher(ttrpcAddress)
if err != nil {
return err
}
defer publisher.Close()
ctx = namespaces.WithNamespace(ctx, namespaceFlag)
ctx = context.WithValue(ctx, OptsKey{}, Opts{BundlePath: bundlePath, Debug: debugFlag})