MCPcopy Create free account
hub / github.com/cavaliercoder/y10k / Dprintf

Function Dprintf

io.go:96–104  ·  view source on GitHub ↗

Dprintf prints verbose output only if debug mode is enabled

(format string, a ...interface{})

Source from the content-addressed store, hash-verified

94
95// Dprintf prints verbose output only if debug mode is enabled
96func Dprintf(format string, a ...interface{}) {
97 if DebugMode {
98 if logger == nil {
99 fmt.Fprintf(os.Stderr, fmt.Sprintf("DEBUG: %s", format), a...)
100 } else {
101 Logf(LOG_CAT_DEBUG, format, a...)
102 }
103 }
104}
105
106// Exec executes a system command and redirects the commands output to debug
107func Exec(path string, args ...string) error {

Callers 4

LoadYumfileFunction · 0.85
installYumConfMethod · 0.85
ExecFunction · 0.85
HealthCheckFunction · 0.85

Calls 1

LogfFunction · 0.85

Tested by

no test coverage detected