journal: Fix panic with no journal set
This commit is contained in:
parent
04bd56a068
commit
74aa3e05fa
@ -27,6 +27,7 @@ func InitializeSystemJournal(dir string) error {
|
||||
func Add(sys string, val interface{}) {
|
||||
if currentJournal == nil {
|
||||
log.Warn("no journal configured")
|
||||
return
|
||||
}
|
||||
currentJournal.AddEntry(sys, val)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user