File tree 3 files changed +8
-4
lines changed
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
module github.com/issue9/mux/v8
2
2
3
3
require (
4
- github.com/issue9/assert/v4 v4.2 .0
4
+ github.com/issue9/assert/v4 v4.3 .0
5
5
github.com/issue9/errwrap v0.3.2
6
- github.com/issue9/source v0.9.1
6
+ github.com/issue9/source v0.10.0
7
7
)
8
8
9
9
require golang.org/x/mod v0.17.0 // indirect
Original file line number Diff line number Diff line change 1
1
github.com/issue9/assert/v4 v4.2.0 h1:XJGMFYW0xfESqFRPLWbSsr0xWdkofytvQbDfNb5n9fw =
2
2
github.com/issue9/assert/v4 v4.2.0 /go.mod h1:v7qDRXi7AsaZZNh8eAK2rkLJg5/clztqQGA1DRv9Lv4 =
3
+ github.com/issue9/assert/v4 v4.3.0 h1:W3XDKmttsfzihYGxJ9rJoL2ViJgWERB9IxfHcxjv65U =
4
+ github.com/issue9/assert/v4 v4.3.0 /go.mod h1:v7qDRXi7AsaZZNh8eAK2rkLJg5/clztqQGA1DRv9Lv4 =
3
5
github.com/issue9/errwrap v0.3.2 h1:7KEme9Pfe75M+sIMcPCn/DV90wjnOcRbO4DXVAHj3Fw =
4
6
github.com/issue9/errwrap v0.3.2 /go.mod h1:KcCLuUGiffjooLCUjL89r1cyO8/HT/VRcQrneO53N3A =
5
7
github.com/issue9/source v0.9.1 h1:duANl/q03NzDtZN5sOPia+s4vBu8c1CqtHGoluY0Tto =
6
8
github.com/issue9/source v0.9.1 /go.mod h1:8L8ef8XhMftlE2ZQ8j60h5hTGlQmPjm/8zvoXr5fnTY =
9
+ github.com/issue9/source v0.10.0 h1:HhZ7QRRzeDzCvnxad2OfLpOlrHV3TdNzFybtKUO4h8M =
10
+ github.com/issue9/source v0.10.0 /go.mod h1:MQYr1hupicwivCqFSH4FAc+eMT6VMTmKTNJOvqRacG0 =
7
11
golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA =
8
12
golang.org/x/mod v0.17.0 /go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c =
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ func StatusRecovery(status int) Option {
52
52
func WriteRecovery (status int , out io.Writer ) Option {
53
53
return Recovery (func (w http.ResponseWriter , msg any ) {
54
54
http .Error (w , http .StatusText (status ), status )
55
- source .DumpStack (out , 4 , msg )
55
+ source .DumpStack (out , 4 , true , msg )
56
56
})
57
57
}
58
58
@@ -63,7 +63,7 @@ func WriteRecovery(status int, out io.Writer) Option {
63
63
func LogRecovery (status int , l * log.Logger ) Option {
64
64
return Recovery (func (w http.ResponseWriter , msg any ) {
65
65
http .Error (w , http .StatusText (status ), status )
66
- l .Println (source .Stack (4 , msg ))
66
+ l .Println (source .Stack (4 , true , msg ))
67
67
})
68
68
}
69
69
You can’t perform that action at this time.
0 commit comments