trace.go 362 B

1234567891011121314151617
  1. //
  2. // Use and distribution licensed under the Apache license version 2.
  3. //
  4. // See the COPYING file in the root project directory for full text.
  5. //
  6. package snapshot
  7. var trace func(msg string, args ...interface{})
  8. func init() {
  9. trace = func(msg string, args ...interface{}) {}
  10. }
  11. func SetTraceFunction(fn func(msg string, args ...interface{})) {
  12. trace = fn
  13. }