Add module name to module error

This commit is contained in:
Daniel 2021-11-17 14:24:47 +01:00
parent 1dfba1d596
commit 28942e4232

View file

@ -5,6 +5,7 @@ import (
"context"
"fmt"
"runtime/pprof"
"strings"
"time"
"github.com/safing/portbase/info"
@ -155,7 +156,7 @@ func (di *Info) AddLastReportedModuleError() {
}
di.AddSection(
"Module Error",
fmt.Sprintf("%s Module Error", strings.Title(me.ModuleName)),
UseCodeSection,
me.Format(),
)