Commit Graph

22 Commits

Author SHA1 Message Date
Abhishek Chanda
f9de6049cb Remove contents of the Authorization header while dumping requests (#1836)
This PR replaces the contents of that header with a *. This prevents
credential leak in logs.
2019-04-18 10:45:37 +08:00
Riverside
057f63b1bb spell check (#1796)
* spell check

* variable path collides with imported package name

* spell check
2019-03-05 09:41:37 +08:00
Dmitry Kutakov
b056a34bdc fix errcheck warnings (#1739) 2019-01-18 09:32:53 +08:00
thinkerou
7ec82ee894 recovery: fix issue about syscall import on google app engine (#1640)
* recovery: fix issue about syscall import on google app engine

* add ToLower()

* the whole error message
2018-11-22 09:17:44 +08:00
Justin Israel
37854ee10f Fix panic stack trace being printed during recovery of broken pipe (#1089) (#1259) 2018-11-06 13:40:20 +08:00
Dustin Decker
ad53619b15 Don't log requests (#1370)
Fixes #1331

HTTP logging leaks sensitive request information.

This PR removes HTTP request logging during panics.
2018-09-23 15:15:23 +08:00
田欧
6c6d97ba2e remove hardcode instead of http status value (#1411) 2018-06-26 17:21:32 +08:00
hellojukay
65a65c2edd add gin panic time log (#1270)
* add gin pinic time log

* Update recovery.go
2018-03-20 14:42:51 +08:00
Eason Lin
848fa41ca0 doc(recovery): add RecoveryWithWriter doc (#1097) 2017-09-05 09:17:53 +08:00
Edward Betts
ab50cf9790 correct spelling mistake (#1092) 2017-09-01 22:02:25 +08:00
田欧
a8fa424ae5 update comment (#1057) 2017-08-16 11:55:50 +08:00
Manu Mtz.-Almeida
61fae4997d Improves documentation 2016-01-26 22:40:29 +01:00
Manu Mtz.-Almeida
1183c1ca8f Fixed recovery unit tests 2016-01-26 19:28:41 +01:00
Manu Mtz.-Almeida
7afb3238a3 Improves Recovery middleware:
- request context
- red colouring
2016-01-26 18:35:56 +01:00
Manu Mtz-Almeida
9ecb76ef6e Cosmetic changes 2015-05-18 20:50:46 +02:00
Manu Mtz-Almeida
99694bb716 Fixes errors 2015-05-12 15:22:13 +02:00
Manu Mtz-Almeida
54b3decc21 More unit tests 2015-04-08 13:30:17 +02:00
Christopher Harrington
6bd27d0238 Remove reference to Martini from recovery.go 2015-02-14 21:55:39 -06:00
Manu Mtz-Almeida
8e5397bfa0 Adds in-code license 2014-08-29 19:49:50 +02:00
Manu Mtz-Almeida
fa80b047f9 The Recovery() middleware should not print the errors (only panics) 2014-07-04 04:32:43 +02:00
Manu Mtz-Almeida
f72fcdf5ba Improves error log formatting 2014-07-02 02:31:11 +02:00
Manu Mtz-Almeida
15216a0883 Initial commit 2014-06-18 01:42:34 +02:00