Debian Codegraph @

tor/log.go

raw symbols SCIP
1 package tor
2
3 import "fmt"
4
5 // DebugEnabled returns true if there is a DebugWriter.
6 func (t *Tor) DebugEnabled() bool {
7 return t.DebugWriter != nil
8 }
9
10 // Debugf writes the formatted string with a newline appended to the DebugWriter
11 // if present.
12 func (t *Tor) Debugf(format string, args ...interface{}) {
13 if w := t.DebugWriter; w != nil {
14 fmt.Fprintf(w, format+"\n", args...)
15 }
16 }