journal: Fix panic with no journal set

This commit is contained in:
Łukasz Magiera 2020-07-07 02:28:59 +02:00
parent 04bd56a068
commit 74aa3e05fa

View File

@ -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)
}