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