Add a small warning comment

This commit is contained in:
Jonathan Hall 2017-04-20 09:37:32 +02:00
parent cc6ca6f305
commit 7e4197a54f
1 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,9 @@ import (
// Hook is a hook designed for dealing with logs in test scenarios.
type Hook struct {
// Entries is an array of all entries that have been received by this hook.
// For safe access, use the AllEntries() method, rather than reading this
// value directly.
Entries []*logrus.Entry
mu sync.RWMutex
}