This commit is contained in:
2025-07-23 18:41:30 +08:00
parent a9add11578
commit 730a7fb8c0
12 changed files with 57 additions and 3 deletions

View File

@@ -57,6 +57,7 @@ func WithPublishTTRPCOpts(opts ...ttrpc.ClientOpts) PublisherOpts {
// NewPublisher creates a new remote events publisher
func NewPublisher(address string, opts ...PublisherOpts) (*RemoteEventsPublisher, error) {
log.L.Infof("mzq-test, publisher.go NewPublisher, address: %v, opts: %+v\n", address, opts)
client, err := ttrpcutil.NewClient(address)
if err != nil {
return nil, err

View File

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