mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 07:26:55 +08:00
move ghdc to pkg
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package ghdc
|
||||
|
||||
import "log"
|
||||
|
||||
var debugFlag = false
|
||||
|
||||
// SetDebug set debug mode
|
||||
func SetDebug(debug bool) {
|
||||
debugFlag = debug
|
||||
}
|
||||
|
||||
func debugLog(msg string) {
|
||||
if !debugFlag {
|
||||
return
|
||||
}
|
||||
log.Println("[DEBUG] [ghd] " + msg)
|
||||
}
|
||||
Reference in New Issue
Block a user