Skip to content

Commit

Permalink
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/agent/main.go
Original file line number Diff line number Diff line change
@@ -73,6 +73,7 @@ func main() {
v,
command,
flags.AddConfigFileFlag,
flags.AddLoggingFlag,
app.AddFlags,
metrics.AddFlags,
)
7 changes: 6 additions & 1 deletion cmd/flags/flags.go
Original file line number Diff line number Diff line change
@@ -77,8 +77,13 @@ func SetDefaultHealthCheckPort(port int) {
// AddFlags adds flags for SharedFlags
func AddFlags(flagSet *flag.FlagSet) {
flagSet.String(spanStorageType, "", fmt.Sprintf("Deprecated; please use %s environment variable", storage.SpanStorageTypeEnvVar))
flagSet.String(logLevel, "info", "Minimal allowed log Level. For more levels see https://github.com/uber-go/zap")
flagSet.Int(healthCheckHTTPPort, defaultHealthCheckPort, "The http port for the health check service")
AddLoggingFlag(flagSet)
}

// AddLoggingFlag adds logging flag for SharedFlags
func AddLoggingFlag(flagSet *flag.FlagSet) {
flagSet.String(logLevel, "info", "Minimal allowed log Level. For more levels see https://github.com/uber-go/zap")
}

// InitFromViper initializes SharedFlags with properties from viper

0 comments on commit cf242c3

Please sign in to comment.