Skip to content
Merged
Changes from all commits
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
3 changes: 3 additions & 0 deletions internal/log/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ func New(options ...Option) *Logger {
// It can use a different writer, but it is expected to use the
// same writer since it is thread safe.
func (l *Logger) New(options ...Option) *Logger {
l.mutex.Lock()
defer l.mutex.Unlock()

var childSettings settings
childSettings.mergeWith(l.settings)
childSettings.mergeWith(newSettings(options))
Expand Down