log message if journal is not configured
This commit is contained in:
parent
18f7b9bb1d
commit
04bd56a068
@ -25,6 +25,9 @@ func InitializeSystemJournal(dir string) error {
|
||||
}
|
||||
|
||||
func Add(sys string, val interface{}) {
|
||||
if currentJournal == nil {
|
||||
log.Warn("no journal configured")
|
||||
}
|
||||
currentJournal.AddEntry(sys, val)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user