Skip to content

Commit

Permalink
Improved comment on LogEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Feb 22, 2020
1 parent 27cf990 commit 0e79f38
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions output/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (l *Output) shouldLogDotfile(dotfile *installer.PreparedDotfile) bool {
}

func (l *Output) logEvent(event events.Event) {
// Do something here
// TODO: Do something here
}

// GetEventChan returns the event channel that may be sent events to be
Expand All @@ -66,7 +66,14 @@ func (l *Output) GetEventChan() chan<- events.Event {
return l.eventChan
}

// LogEvents procese
// LogEvents processes the Events channel and output logging for each event
// processed on the channel. A function is returned that when called will stop
// processing.
//
// Typically this should be called with a defer, e.g:
//
// defer myLogger.LogEvents()()
//
func (l *Output) LogEvents() func() {
stop := make(chan bool)

Expand Down

0 comments on commit 0e79f38

Please sign in to comment.