v0.0.361 call exerrListener in ginext.Error
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m37s

This commit is contained in:
2024-01-07 04:01:13 +01:00
parent 5fba7e0e2f
commit d38fa60fbc
4 changed files with 10 additions and 10 deletions

View File

@@ -420,7 +420,7 @@ func (b *Builder) Build() error {
b.errorData.ShortLog(stackSkipLogger.Error())
}
b.CallListener(MethodBuild)
b.errorData.CallListener(MethodBuild)
return b.errorData
}
@@ -442,7 +442,7 @@ func (b *Builder) Output(ctx context.Context, g *gin.Context) {
b.errorData.Log(stackSkipLogger.Warn())
}
b.CallListener(MethodOutput)
b.errorData.CallListener(MethodOutput)
}
// Print prints the error
@@ -454,7 +454,7 @@ func (b *Builder) Print() {
b.errorData.ShortLog(stackSkipLogger.Warn())
}
b.CallListener(MethodPrint)
b.errorData.CallListener(MethodPrint)
}
func (b *Builder) Format(level LogPrintLevel) string {
@@ -467,7 +467,7 @@ func (b *Builder) Fatal() {
b.errorData.Severity = SevFatal
b.errorData.Log(stackSkipLogger.WithLevel(zerolog.FatalLevel))
b.CallListener(MethodFatal)
b.errorData.CallListener(MethodFatal)
os.Exit(1)
}