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

Unified Diff: logdog/client/cmd/logdog_butler/main.go

Issue 2456673003: Butler: export Coordinator host in environment. (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: logdog/client/cmd/logdog_butler/main.go
diff --git a/logdog/client/cmd/logdog_butler/main.go b/logdog/client/cmd/logdog_butler/main.go
index 718baf07493a6eae58cf234944a608fde7b20e84..b8b4b49870817cb75d435495a5ce9cf63f322b71 100644
--- a/logdog/client/cmd/logdog_butler/main.go
+++ b/logdog/client/cmd/logdog_butler/main.go
@@ -113,18 +113,13 @@ func (a *application) authenticator(ctx context.Context) (*auth.Authenticator, e
return auth.NewAuthenticator(ctx, auth.SilentLogin, opts), nil
}
-func (a *application) configOutput() (output.Output, error) {
+// getOutputFactory returns the currently-configured output factory.
+func (a *application) getOutputFactory() (outputFactory, error) {
factory := a.outputConfig.getFactory()
if factory == nil {
return nil, errors.New("main: No output is configured")
}
-
- output, err := factory.configOutput(a)
- if err != nil {
- return nil, err
- }
-
- return output, nil
+ return factory, nil
}
// runWithButler is an execution harness that adds application-level management

Powered by Google App Engine
This is Rietveld 408576698