mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Initial commit
This commit is contained in:
14
vendor/github.com/gobuffalo/buffalo-plugins/plugins/log_debug.go
generated
vendored
Normal file
14
vendor/github.com/gobuffalo/buffalo-plugins/plugins/log_debug.go
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
//+build debug
|
||||
|
||||
package plugins
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
func log(name string, fn func() error) error {
|
||||
start := time.Now()
|
||||
defer fmt.Println(name, time.Now().Sub(start))
|
||||
return fn()
|
||||
}
|
||||
Reference in New Issue
Block a user