Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

(MAINT) fix logging.Stderr->Debug in docs

  • Loading branch information...
johnmccabe committed Jun 14, 2017
1 parent baa353f commit 154ed3ea2b2de88d7c5db5c2c8f8e5b45c1ee1b0
Showing with 3 additions and 3 deletions.
  1. +3 −3 DEBUGGING.md
@@ -55,10 +55,10 @@ import "github.com/davecgh/go-spew/spew"
// LogDump outputs a delimited log section with the message string and a structured dump of the provided data object
func LogDump(message string, data interface{}) {
logging.Stderr("\n\n====BEGIN======================================")
logging.Debug("\n\n====BEGIN======================================")
_, file, line, _ := runtime.Caller(1)
logging.Stderr(fmt.Sprintf("Debug - %s @ %s:%d:\n", message, file, line), spew.Sdump(data))
logging.Stderr("====END=======================================\n\n")
logging.Debug(fmt.Sprintf("Debug - %s @ %s:%d:\n", message, file, line), spew.Sdump(data))
logging.Debug("====END=======================================\n\n")
}
```

0 comments on commit 154ed3e

Please sign in to comment.
You can’t perform that action at this time.