MCPcopy
hub / github.com/dnote/dnote / Debug

Function Debug

pkg/cli/log/log.go:116–120  ·  view source on GitHub ↗

Debug prints to the console if DNOTE_DEBUG is set

(msg string, v ...interface{})

Source from the content-addressed store, hash-verified

114
115// Debug prints to the console if DNOTE_DEBUG is set
116func Debug(msg string, v ...interface{}) {
117 if isDebug() {
118 fmt.Fprintf(color.Output, "%s %s", ColorGray.Sprint("DEBUG:"), fmt.Sprintf(msg, v...))
119 }
120}
121
122// DebugNewline prints a newline only in debug mode
123func DebugNewline() {

Callers 15

doReqFunction · 0.92
InitFunction · 0.92
InitDBFunction · 0.92
InitSystemFunction · 0.92
LegacyFunction · 0.92
getUnrunMigrationsFunction · 0.92
migrations.goFile · 0.92
executeFunction · 0.92
RunFunction · 0.92
newRunFunction · 0.92
getSyncFragmentsFunction · 0.92
fullSyncFunction · 0.92

Calls 1

isDebugFunction · 0.85

Tested by

no test coverage detected