log message if journal is not configured

This commit is contained in:
whyrusleeping 2020-07-06 15:37:05 -07:00
parent 18f7b9bb1d
commit 04bd56a068

View File

@ -25,6 +25,9 @@ func InitializeSystemJournal(dir string) error {
} }
func Add(sys string, val interface{}) { func Add(sys string, val interface{}) {
if currentJournal == nil {
log.Warn("no journal configured")
}
currentJournal.AddEntry(sys, val) currentJournal.AddEntry(sys, val)
} }