Skip to content

Commit

Permalink
drawer: use logrus debug level instead of the info level
Browse files Browse the repository at this point in the history
  • Loading branch information
scbizu committed Jun 10, 2018
1 parent d6fa870 commit 9a20e6e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion drawer/drawer.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package drawer
import (
"io/ioutil"
"os"
"strings"

"github.com/awalterschulze/gographviz"
"github.com/sirupsen/logrus"
Expand Down Expand Up @@ -93,5 +94,10 @@ func addQuotation(node string) string {
bs = append(bs, b)
}
bs = append(bs, '"')
return string(bs)
return addNAfterSlash(string(bs))
}

// addNAfterSlash enter the newline after /
func addNAfterSlash(nodeName string) string {
return strings.Replace(nodeName, "/", "/\n", -1)
}

0 comments on commit 9a20e6e

Please sign in to comment.