This commit is contained in:
+5
-4
@@ -2,12 +2,13 @@ package exerr
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.blackforestbytes.com/BlackForestBytes/goext/langext"
|
|
||||||
"github.com/rs/xid"
|
|
||||||
"github.com/rs/zerolog"
|
|
||||||
"reflect"
|
"reflect"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"git.blackforestbytes.com/BlackForestBytes/goext/langext"
|
||||||
|
"github.com/rs/xid"
|
||||||
|
"github.com/rs/zerolog"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ExErr struct {
|
type ExErr struct {
|
||||||
@@ -136,7 +137,7 @@ func (ee *ExErr) FormatLog(lvl LogPrintLevel) string {
|
|||||||
for curr := ee; curr != nil; curr = curr.OriginalError {
|
for curr := ee; curr != nil; curr = curr.OriginalError {
|
||||||
indent.WriteString(" ")
|
indent.WriteString(" ")
|
||||||
|
|
||||||
str.WriteString(indent).String()
|
str.WriteString(indent.String())
|
||||||
str.WriteString("-> ")
|
str.WriteString("-> ")
|
||||||
strmsg := strings.Trim(curr.Message, " \r\n\t")
|
strmsg := strings.Trim(curr.Message, " \r\n\t")
|
||||||
if lbidx := strings.Index(curr.Message, "\n"); lbidx >= 0 {
|
if lbidx := strings.Index(curr.Message, "\n"); lbidx >= 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user