Merge pull request #230 from stokito/skip_timer_logging

logging: skip timer events e.g. /timer/1s
This commit is contained in:
bradley 2020-11-18 09:40:33 -05:00 committed by GitHub
commit fd06992236
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,10 @@ import (
var mstats = &runtime.MemStats{}
func logEvent(e ui.Event) {
// skip timer events e.g. /timer/1s
if e.From == "timer" {
return
}
var s string
s += fmt.Sprintf("Type=%s", quote(e.Type))
s += fmt.Sprintf(" Path=%s", quote(e.Path))