| Index: client/internal/logdog/butler/output/pubsub/pubsubOutput.go
|
| diff --git a/client/internal/logdog/butler/output/pubsub/pubsubOutput.go b/client/internal/logdog/butler/output/pubsub/pubsubOutput.go
|
| index 3f262c639b2b84b9a922710b8810ece1b1ebdfa1..b45cdf07ae1c9575fd2890951414100d3155c175 100644
|
| --- a/client/internal/logdog/butler/output/pubsub/pubsubOutput.go
|
| +++ b/client/internal/logdog/butler/output/pubsub/pubsubOutput.go
|
| @@ -14,6 +14,7 @@ import (
|
| "github.com/luci/luci-go/client/internal/logdog/butler/output"
|
| gcps "github.com/luci/luci-go/common/gcloud/pubsub"
|
| "github.com/luci/luci-go/common/logdog/butlerproto"
|
| + "github.com/luci/luci-go/common/logdog/types"
|
| log "github.com/luci/luci-go/common/logging"
|
| "github.com/luci/luci-go/common/proto/logdog/logpb"
|
| "github.com/luci/luci-go/common/recordio"
|
| @@ -40,6 +41,9 @@ type Config struct {
|
| // Topic is the Pub/Sub topic to publish to.
|
| Topic Topic
|
|
|
| + // Secret, if not nil, is the prefix secret to attach to each outgoing bundle.
|
| + Secret types.PrefixSecret
|
| +
|
| // Compress, if true, enables zlib compression.
|
| Compress bool
|
|
|
| @@ -96,6 +100,7 @@ func (o *pubSubOutput) SendBundle(bundle *logpb.ButlerLogBundle) error {
|
| b := o.bufferPool.Get().(*buffer)
|
| defer o.bufferPool.Put(b)
|
|
|
| + bundle.Secret = []byte(o.Secret)
|
| message, err := o.buildMessage(b, bundle)
|
| if err != nil {
|
| log.Fields{
|
|
|