explain logging and weight fixing
This commit is contained in:
parent
e1e95b9686
commit
e453385d5e
10 changed files with 95 additions and 14 deletions
|
|
@ -15,6 +15,8 @@
|
|||
package gremlin
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/barakmich/glog"
|
||||
"github.com/robertkrimen/otto"
|
||||
|
||||
|
|
@ -278,5 +280,9 @@ func runIteratorOnSession(it graph.Iterator, ses *Session) {
|
|||
}
|
||||
}
|
||||
}
|
||||
if glog.V(2) {
|
||||
bytes, _ := json.MarshalIndent(graph.DumpStats(it), "", " ")
|
||||
glog.V(2).Infoln(string(bytes))
|
||||
}
|
||||
it.Close()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue