Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: common/logdog/coordinator/stream.go

Issue 1916013002: LogDog: Add project namespacing to `logdog_cat` (Closed) Base URL: https://github.com/luci/luci-go@logdog-project-collector-butler
Patch Set: Rebase, project UI. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « common/logdog/coordinator/query.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/logdog/coordinator/stream.go
diff --git a/common/logdog/coordinator/stream.go b/common/logdog/coordinator/stream.go
index 5509128899472518fac22fd61170c1cd926a4252..57a7c770c9e2c42836e8512f44ca6b238e27ad36 100644
--- a/common/logdog/coordinator/stream.go
+++ b/common/logdog/coordinator/stream.go
@@ -119,6 +119,7 @@ func (s *Stream) Get(ctx context.Context, p *StreamGetParams) ([]*logpb.LogEntry
}
req := p.r
+ req.Project = string(s.c.project)
req.Path = string(s.path)
if p.stateP != nil {
req.State = true
@@ -139,7 +140,8 @@ func (s *Stream) Get(ctx context.Context, p *StreamGetParams) ([]*logpb.LogEntry
// variable.
func (s *Stream) Tail(ctx context.Context, stateP *LogStream) (*logpb.LogEntry, error) {
req := logdog.TailRequest{
- Path: string(s.path),
+ Project: string(s.c.project),
+ Path: string(s.path),
}
if stateP != nil {
req.State = true
« no previous file with comments | « common/logdog/coordinator/query.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698