Skip to content

Commit

Permalink
Improve error handling (dragonflyoss#324)
Browse files Browse the repository at this point in the history
Signed-off-by: yxxhero <[email protected]>
  • Loading branch information
yxxhero authored Jun 11, 2021
1 parent 94c48e2 commit 6b0b3b6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmd/manager/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var (
// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "manager",
Short: "the central manager of dragonfly",
Short: "The central manager of dragonfly.",
Long: `manager is a long-running process and is mainly responsible
for managing schedulers and cdns, offering http apis and portal, etc.`,
Args: cobra.NoArgs,
Expand Down Expand Up @@ -69,7 +69,12 @@ func init() {

func runManager() error {
// manager config values
s, _ := yaml.Marshal(cfg)
s, err := yaml.Marshal(cfg)

if err != nil {
return err
}

logger.Infof("manager configuration:\n%s", string(s))

ff := dependency.InitMonitor(cfg.Verbose, cfg.PProfPort, cfg.Telemetry.Jaeger)
Expand Down

0 comments on commit 6b0b3b6

Please sign in to comment.