Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Writer = ginkgo.GinkgoWriter
Functions ¶
func LogBackoff ¶
func LogBackoff() (logf func(format string, args ...interface{}), done func())
LogBackoff gives you a logger with an exponential backoff. If the returned 'logf' func is called too often, the logf calls get ignored until the backoff expires.
The reason we use this backoff mechanism is that we have many "waiting loops" that poll every 0.5 seconds. We don't want to use a higher polling interval since it would slow the test.
The first log line is immediately printed, and the last message is always printed even if the backoff isn't done. That's because the first and last messages are often helpful to understand how things went.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.