add error stack for internal error printing

This commit is contained in:
John Guo
2022-01-28 14:51:49 +08:00
parent 1a000396e2
commit 04eb654133
55 changed files with 175 additions and 240 deletions

View File

@ -148,7 +148,7 @@ func (oai *OpenApiV3) Add(in AddInput) error {
func (oai OpenApiV3) String() string {
b, err := json.Marshal(oai)
if err != nil {
intlog.Error(context.TODO(), err)
intlog.Errorf(context.TODO(), `%+v`, err)
}
return string(b)
}