mzq-test
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user