Migrate a bunch of stuff around to prep for worker command (#2)

Right now it's essentially a copy; it needs some updating, integration
into dev, and so on.
This commit is contained in:
Jeff Mitchell authored and GitHub committed 2020-03-19 15:17:40 -04:00
1 parent c2d385d851
commit 1645c3106e
18 files changed
+1200 -157

No files matched your search

+4 -4
View File
@@ -138,15 +138,15 @@ func (c *Command) Run(args []string) int {
return 1
}
if memProfilerEnabled {
c.startMemProfiler()
}
if err := c.SetupLogging(c.flagLogLevel, c.flagLogFormat, "", ""); err != nil {
c.UI.Error(err.Error())
return 1
}
if memProfilerEnabled {
base.StartMemProfiler(c.Logger)
}
if err := c.SetupMetrics(c.UI, devControllerConfig.Telemetry); err != nil {
c.UI.Error(err.Error())
return 1