Select Git revision
instrumentation_impl.go 323 B
//go:build instrumented
package main
import (
"encoding/json"
"runtime/debug"
"github.com/docker/machine/libmachine/log"
)
func instrumented[T any](input T) T {
j, err := json.Marshal(input)
if err != nil {
log.Error(err)
panic(err)
}
log.Debugf("%v\n%v\n", string(debug.Stack()), string(j))
return input
}