{"level":"error","stack":[{"func":"inner","line":"50","source":"test_test.go"},{"func":"middle","line":"54","source":"test_test.go"},{"func":"outer","line":"62","source":"test_test.go"},{"func":"testLogger","line":"45","source":"test_test.go"},{"func":"TestAny.func6","line":"36","source":"test_test.go"},{"func":"(*App).next","line":"145","source":"router.go"},{"func":"(*Ctx).Next","line":"1030","source":"ctx.go"},{"func":"TestAny.func5","line":"32","source":"test_test.go"},{"func":"(*Ctx).Next","line":"1027","source":"ctx.go"},{"func":"TestAny.func4","line":"29","source":"test_test.go"},{"func":"(*Ctx).Next","line":"1027","source":"ctx.go"},{"func":"TestAny.func3","line":"26","source":"test_test.go"},{"func":"(*Ctx).Next","line":"1027","source":"ctx.go"},{"func":"TestAny.func2","line":"23","source":"test_test.go"},{"func":"(*Ctx).Next","line":"1027","source":"ctx.go"},{"func":"TestAny.func1","line":"20","source":"test_test.go"},{"func":"(*App).next","line":"145","source":"router.go"},{"func":"(*App).handler","line":"172","source":"router.go"},{"func":"(*Server).serveConn","line":"2359","source":"server.go"},{"func":"(*workerPool).workerFunc","line":"224","source":"workerpool.go"},{"func":"(*workerPool).getCh.func1","line":"196","source":"workerpool.go"},{"func":"goexit","line":"1197","source":"asm_arm64.s"}],"error":"seems we have an error here","time":1706101317}
If I registered some middlewares in fiber, the error stack will become very long and useless.
How can I optimize this?
my case
If I registered some middlewares in fiber, the error stack will become very long and useless. How can I optimize this?