Dprintf prints verbose output only if debug mode is enabled
(format string, a ...interface{})
| 94 | |
| 95 | // Dprintf prints verbose output only if debug mode is enabled |
| 96 | func 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 |
| 107 | func Exec(path string, args ...string) error { |
no test coverage detected