ref: 4382a8a6a030520d9f094b3d7bb8f3ae3f08b187
parent: 9dfb9c14454e6184cd7ff52f6b9f1beffbadf1e5
author: Bjørn Erik Pedersen <[email protected]>
date: Sat Mar 18 13:31:42 EDT 2017
helpers: Add a Debug method to DistinctLogger
--- a/helpers/general.go
+++ b/helpers/general.go
@@ -213,6 +213,13 @@
m map[string]bool
}
+// Debug prints all the log entries to standard output.
+func (l *DistinctLogger) Debug() {
+ for k, _ := range l.m {
+ fmt.Println(k)
+ }
+}
+
// Println will log the string returned from fmt.Sprintln given the arguments,
// but not if it has been logged before.
func (l *DistinctLogger) Println(v ...interface{}) {