Skip to content

Commit

Permalink
added missing spaces in log msgs of graph cmd (#166)
Browse files Browse the repository at this point in the history
* added missing spaces in log msgs

* removed "!"
  • Loading branch information
hellt authored Nov 22, 2020
1 parent 327a6ab commit 5c8c7d4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions clab/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var g *gographviz.Graph

// GenerateGraph generates a graph of the lab topology
func (c *cLab) GenerateGraph(topo string) error {
log.Info("Generating lab graph ...")
log.Info("Generating lab graph...")
g = gographviz.NewGraph()
if err := g.SetName(c.TopoFile.name); err != nil {
return err
Expand Down Expand Up @@ -72,7 +72,7 @@ func (c *cLab) GenerateGraph(topo string) error {
// create graph filename
dotfile := c.Dir.LabGraph + "/" + c.TopoFile.name + ".dot"
createFile(dotfile, g.String())
log.Info("Created", dotfile, "!")
log.Infof("Created %s", dotfile)

pngfile := c.Dir.LabGraph + "/" + c.TopoFile.name + ".png"

Expand All @@ -81,7 +81,6 @@ func (c *cLab) GenerateGraph(topo string) error {
generatePngFromDot(dotfile, pngfile)
log.Info("Created ", pngfile)
}
log.Info("Done generating lab graph!")
return nil
}

Expand Down

0 comments on commit 5c8c7d4

Please sign in to comment.