author | Alberto Bertogli
<albertito@blitiri.com.ar> 2016-10-08 21:27:25 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2016-10-09 23:51:05 UTC |
parent | 3eac221a7fac0ef33a7d97895692e13a0e603367 |
internal/trace/trace.go | +7 | -1 |
diff --git a/internal/trace/trace.go b/internal/trace/trace.go index d96d9c5..bcddf04 100644 --- a/internal/trace/trace.go +++ b/internal/trace/trace.go @@ -16,7 +16,13 @@ type Trace struct { } func New(family, title string) *Trace { - return &Trace{family, title, nettrace.New(family, title)} + t := &Trace{family, title, nettrace.New(family, title)} + + // The default for max events is 10, which is a bit short for a normal + // SMTP exchange. Expand it to 30 which should be large enough to keep + // most of the traces. + t.t.SetMaxEvents(30) + return t } func (t *Trace) Printf(format string, a ...interface{}) {