Marius van der Wijden
Marius van der Wijden
Please don't ask if you can implement something, just send a PR!
Something is broken here: ``` func (_{{$contract.Type}} *{{$contract.Type}}) Unpack{{.Normalized.Name}}(data []byte) ({{if .Structured}}struct{ {{range .Normalized.Outputs}}{{.Name}} {{bindtype .Type $structs}};{{end}} },{{else}}{{range .Normalized.Outputs}}{{bindtype .Type $structs}},{{end}}{{end}} error) { out, err := _{{$contract.Type}}.abi.Unpack("{{.Original.Name}}", data) {{if .Structured}}...
``` /home/matematik/go/src/github.com/go-snippets/geth-test/array.go:8:2: "fmt" imported and not used ``` You should probably do with fmt the same thing as with the other imports: `_ = fmt.Printf` so that go doesn't break...
Looks like the tests fail at the moment @jwasinger because the variable `Str` is being redeclared multiple times. I will take a deeper look once thats fixed. One note that...
I think you can try to do a `debug.vmodule("internal/ethapi/api.go=0")` to get rid of the `Submitted transaction` log
We should probably make `vmodule` filter the log messages instead of only increasing the log level of certain packages
Anyone currently working on this? If not, could you give some pointers where to start with this?
## Benchmark: ``` func BenchmarkGlog(b *testing.B) { out := new(bytes.Buffer) glog := NewGlogHandler(NewTerminalHandlerWithLevel(out, LevelTrace, false)) glog.Verbosity(LevelCrit) logger := NewLogger(glog) logger.Warn("This should not be seen", "ignored", "true") //glog.Vmodule("logger_test.go=5") for i :=...
The size of the map will at max be 20.000 items, (rough count of every time we call log), so `20.000*64*2 = 2MB` (if all logs we have in the...
use sync.Map