mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 01:31:17 +00:00
fix build
This commit is contained in:
@@ -207,6 +207,12 @@ func appMain(flags appFlags) {
|
||||
setLogFormatter(flags.logPrefix)
|
||||
runtime.SetBlockProfileRate(flags.blockProfileRate)
|
||||
|
||||
if flags.basicAuth {
|
||||
log.Infof("Basic authentication enabled")
|
||||
} else {
|
||||
log.Infof("Basic authentication disabled")
|
||||
}
|
||||
|
||||
traceCloser := tracing.NewFromEnv(fmt.Sprintf("scope-%s", flags.serviceName))
|
||||
defer traceCloser.Close()
|
||||
|
||||
|
||||
@@ -478,12 +478,6 @@ func main() {
|
||||
flags.app.password = password
|
||||
}
|
||||
|
||||
if flags.basicAuth {
|
||||
log.Infof("Basic authentication enabled")
|
||||
} else {
|
||||
log.Infof("Basic authentication disabled")
|
||||
}
|
||||
|
||||
if flags.dryRun {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -96,6 +96,12 @@ func probeMain(flags probeFlags, targets []appclient.Target) {
|
||||
setLogLevel(flags.logLevel)
|
||||
setLogFormatter(flags.logPrefix)
|
||||
|
||||
if flags.basicAuth {
|
||||
log.Infof("Basic authentication enabled")
|
||||
} else {
|
||||
log.Infof("Basic authentication disabled")
|
||||
}
|
||||
|
||||
traceCloser := tracing.NewFromEnv("scope-probe")
|
||||
defer traceCloser.Close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user