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

Side by Side Diff: go/src/infra/tools/kitchen/cook.go

Issue 2146403002: Kitchen: Generate LogDog prefix from Swarming. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Kitchen: Generate LogDog prefix from Swarming. Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | go/src/infra/tools/kitchen/cook_logdog.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The LUCI Authors. All rights reserved. 1 // Copyright 2016 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 package main 5 package main
6 6
7 import ( 7 import (
8 "encoding/json" 8 "encoding/json"
9 "fmt" 9 "fmt"
10 "io/ioutil" 10 "io/ioutil"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 "The name of the LogDog host.") 79 "The name of the LogDog host.")
80 fs.StringVar( 80 fs.StringVar(
81 &c.logdog.project, 81 &c.logdog.project,
82 "logdog-project", 82 "logdog-project",
83 "", 83 "",
84 "The name of the LogDog project to log into. Projects ha ve different ACL sets, "+ 84 "The name of the LogDog project to log into. Projects ha ve different ACL sets, "+
85 "so choose this appropriately.") 85 "so choose this appropriately.")
86 fs.Var( 86 fs.Var(
87 &c.logdog.prefix, 87 &c.logdog.prefix,
88 "logdog-prefix", 88 "logdog-prefix",
89 » » » "The LogDog stream Prefix to use.") 89 » » » "The LogDog stream Prefix to use. If empty, one will be constructed from the Swarming "+
90 » » » » "task parameters.")
nodir 2016/07/14 22:25:48 please explain here where these parameter values a
dnj (Google) 2016/07/14 22:37:38 Done.
90 fs.BoolVar( 91 fs.BoolVar(
91 &c.logdog.annotee, 92 &c.logdog.annotee,
92 "logdog-enable-annotee", 93 "logdog-enable-annotee",
93 true, 94 true,
94 "Process bootstrap STDOUT/STDERR annotations through Ann otee.") 95 "Process bootstrap STDOUT/STDERR annotations through Ann otee.")
95 fs.StringVar( 96 fs.StringVar(
96 &c.logdog.filePath, 97 &c.logdog.filePath,
97 "logdog-debug-out-file", 98 "logdog-debug-out-file",
98 "", 99 "",
99 "If specified, write all generated logs to this path ins tead of sending them.") 100 "If specified, write all generated logs to this path ins tead of sending them.")
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 } 323 }
323 324
324 func annotateTime(ctx context.Context) { 325 func annotateTime(ctx context.Context) {
325 timestamp := clock.Get(ctx).Now().Unix() 326 timestamp := clock.Get(ctx).Now().Unix()
326 annotate("CURRENT_TIMESTAMP", strconv.FormatInt(timestamp, 10)) 327 annotate("CURRENT_TIMESTAMP", strconv.FormatInt(timestamp, 10))
327 } 328 }
328 329
329 func annotate(args ...string) { 330 func annotate(args ...string) {
330 fmt.Printf("@@@%s@@@\n", strings.Join(args, "@")) 331 fmt.Printf("@@@%s@@@\n", strings.Join(args, "@"))
331 } 332 }
OLDNEW
« no previous file with comments | « no previous file | go/src/infra/tools/kitchen/cook_logdog.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698