mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-06 07:57:27 +08:00
refactor: move gadb to hrp pkg
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package gadb
|
||||
|
||||
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] [gadb] " + msg)
|
||||
}
|
||||
Reference in New Issue
Block a user