mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 17:22:26 -05:00
Update dependencies (#333)
This commit is contained in:
parent
ce22e03f9d
commit
182b4eea73
848 changed files with 377869 additions and 107280 deletions
3
vendor/github.com/gin-gonic/gin/logger.go
generated
vendored
3
vendor/github.com/gin-gonic/gin/logger.go
generated
vendored
|
|
@ -138,7 +138,8 @@ var defaultLogFormatter = func(param LogFormatterParams) string {
|
|||
}
|
||||
|
||||
if param.Latency > time.Minute {
|
||||
param.Latency = param.Latency.Truncate(time.Second)
|
||||
// Truncate in a golang < 1.8 safe way
|
||||
param.Latency = param.Latency - param.Latency%time.Second
|
||||
}
|
||||
return fmt.Sprintf("[GIN] %v |%s %3d %s| %13v | %15s |%s %-7s %s %#v\n%s",
|
||||
param.TimeStamp.Format("2006/01/02 - 15:04:05"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue