Merge branch 'master' into replcrash

This commit is contained in:
Barak Michener 2014-08-20 13:44:24 -04:00
commit 8e16543da3
11 changed files with 260 additions and 79 deletions

View file

@ -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()
}