Skip to content

Commit

Permalink
Downgrade some debugging log messages to a debug verbosity level.
Browse files Browse the repository at this point in the history
Issue #165
  • Loading branch information
jaqx0r committed Jun 30, 2018
1 parent 8292ba6 commit 2991023
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion metrics/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func NewStore() (s *Store) {
func (s *Store) Add(m *Metric) error {
s.Lock()
defer s.Unlock()
glog.Infof("Adding a new metric %v", m)
glog.V(1).Infof("Adding a new metric %v", m)
dupeIndex := -1
if len(s.Metrics[m.Name]) > 0 {
t := s.Metrics[m.Name][0].Kind
Expand Down
4 changes: 2 additions & 2 deletions vm/checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,12 +286,12 @@ func (c *checker) VisitAfter(node astNode) {
if !Equals(t, lT) {
conv := &convNode{n: n.lhs, typ: t}
n.lhs = conv
glog.Infof("Emitting convnode %+v", conv)
glog.V(2).Infof("Emitting convnode %+v", conv)
}
if !Equals(t, rT) {
conv := &convNode{n: n.rhs, typ: t}
n.rhs = conv
glog.Infof("Emitting convnode %+v", conv)
glog.V(2).Infof("Emitting convnode %+v", conv)
}

case ASSIGN, ADD_ASSIGN:
Expand Down
2 changes: 1 addition & 1 deletion vm/codegen.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ func (c *codegen) VisitAfter(node astNode) {
}

func (c *codegen) emitConversion(inType, outType Type) error {
glog.Infof("Conversion: %q to %q", inType, outType)
glog.V(2).Infof("Conversion: %q to %q", inType, outType)
if Equals(Int, inType) && Equals(Float, outType) {
c.emit(instr{op: i2f})
} else if Equals(String, inType) && Equals(Float, outType) {
Expand Down
2 changes: 1 addition & 1 deletion vm/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ func Unify(a, b Type) error {
}
if a2.Name != b2.Name {
t := LeastUpperBound(a, b)
glog.Infof("Got LUB = %q", t)
glog.V(2).Infof("Got LUB = %q", t)
if t == Error {
return &TypeError{a2, b2}
}
Expand Down

0 comments on commit 2991023

Please sign in to comment.