Skip to content

Commit

Permalink
Always report a level when logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafe Colton committed Nov 28, 2014
1 parent eea3f6a commit 93439fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion communication/reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ func NewReporter(log LogChan, event EventChan) *Reporter {

// Log - send a log message into the ether
func (r *Reporter) Log(entry *logrus.Entry, message string) {
entry.Message = message
r.LogLevel(entry, message, logrus.DebugLevel)
}

// LogLevel - send a log message into the ether, specifying level
func (r *Reporter) LogLevel(entry *logrus.Entry, message string, level logrus.Level) {
entry.Message = message
entry.Level = level
if r.log != nil {
r.log <- NewLogEntry(entry)
Expand Down

0 comments on commit 93439fa

Please sign in to comment.