profiler: wrap all logging with the debugLog helper function
debugLog checks user defined logging options before logging.
@@ -188,7 +188,7 @@ func (o *allowUntilSuccess) do(f func() error) (err error) {
o.done = 1
}
} else {
- log.Printf("profiler.Start() called again after it was previously called")
+ debugLog("profiler.Start() called again after it was previously called")
err = nil
}
return err
