| OLD | NEW |
| 1 // Copyright 2015 The LUCI Authors. All rights reserved. | 1 // Copyright 2015 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 "errors" | 8 "errors" |
| 9 "flag" | 9 "flag" |
| 10 "fmt" | 10 "fmt" |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 } | 128 } |
| 129 } | 129 } |
| 130 return nil | 130 return nil |
| 131 } | 131 } |
| 132 | 132 |
| 133 // loggingFlags configures eventlog logging. | 133 // loggingFlags configures eventlog logging. |
| 134 type loggingFlags struct { | 134 type loggingFlags struct { |
| 135 EventlogEndpoint string | 135 EventlogEndpoint string |
| 136 } | 136 } |
| 137 | 137 |
| 138 const eventlogEndpointHelp = `The URL destination for eventlogs. The following s
pecial values are supported: |
| 139 \t"prod": use the prod eventlog endpoint |
| 140 \t"test": use the test eventlog endpoint |
| 141 \t"none": disable eventlogging |
| 142 \t"auto": use the prod endpoint if --isolate-server is set to the prod isolate s
erver; otherwise disable eventlogging.` |
| 143 |
| 138 func (lf *loggingFlags) Init(f *flag.FlagSet) { | 144 func (lf *loggingFlags) Init(f *flag.FlagSet) { |
| 139 » f.StringVar(&lf.EventlogEndpoint, "eventlog-endpoint", "", `The URL dest
ination for eventlogs. The special values "prod" or "test" may be used to target
the standard prod or test urls repspectively. An empty string disables eventlog
ging.`) | 145 » f.StringVar(&lf.EventlogEndpoint, "eventlog-endpoint", "auto", eventlogE
ndpointHelp) |
| 140 } | 146 } |
| OLD | NEW |