Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions modules/log/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,11 +359,15 @@ func (m *MultiChannelledLog) Flush() {

// GetLevel gets the level of this MultiChannelledLog
func (m *MultiChannelledLog) GetLevel() Level {
m.mutex.Lock()
Comment thread
zeripath marked this conversation as resolved.
Outdated
defer m.mutex.Unlock()
return m.level
}

// GetStacktraceLevel gets the level of this MultiChannelledLog
func (m *MultiChannelledLog) GetStacktraceLevel() Level {
m.mutex.Lock()
defer m.mutex.Unlock()
return m.stacktraceLevel
}

Expand Down