mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
helpers: Add a Debug method to DistinctLogger
This commit is contained in:
parent
9dfb9c1445
commit
4382a8a6a0
1 changed files with 7 additions and 0 deletions
|
@ -213,6 +213,13 @@ type DistinctLogger struct {
|
|||
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{}) {
|
||||
|
|
Loading…
Reference in a new issue