Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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 } |
| OLD | NEW |