diff options
Diffstat (limited to 'vendor/github.com/gin-gonic/gin/recovery.go')
-rw-r--r-- | vendor/github.com/gin-gonic/gin/recovery.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/gin-gonic/gin/recovery.go b/vendor/github.com/gin-gonic/gin/recovery.go index 3101fe28a..563f5aaa8 100644 --- a/vendor/github.com/gin-gonic/gin/recovery.go +++ b/vendor/github.com/gin-gonic/gin/recovery.go @@ -34,7 +34,7 @@ func Recovery() HandlerFunc { return RecoveryWithWriter(DefaultErrorWriter) } -// CustomRecovery returns a middleware that recovers from any panics and calls the provided handle func to handle it. +//CustomRecovery returns a middleware that recovers from any panics and calls the provided handle func to handle it. func CustomRecovery(handle RecoveryFunc) HandlerFunc { return RecoveryWithWriter(DefaultErrorWriter, handle) } @@ -165,7 +165,7 @@ func function(pc uintptr) []byte { return name } -// timeFormat returns a customized time string for logger. func timeFormat(t time.Time) string { - return t.Format("2006/01/02 - 15:04:05") + timeString := t.Format("2006/01/02 - 15:04:05") + return timeString } |