fix nil pointer
parent
e7f8fc93e4
commit
01a1d981cf
|
@ -735,8 +735,11 @@ func (s *Server) updateStatsAndPrune() {
|
||||||
messages += msgs
|
messages += msgs
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mail
|
// Mail stats
|
||||||
mailSuccess, mailFailure := s.smtpBackend.Counts()
|
var mailSuccess, mailFailure int64
|
||||||
|
if s.smtpBackend != nil {
|
||||||
|
mailSuccess, mailFailure = s.smtpBackend.Counts()
|
||||||
|
}
|
||||||
|
|
||||||
// Print stats
|
// Print stats
|
||||||
log.Printf("Stats: %d message(s) published, %d in cache, %d successful mails, %d failed, %d topic(s) active, %d subscriber(s), %d visitor(s)",
|
log.Printf("Stats: %d message(s) published, %d in cache, %d successful mails, %d failed, %d topic(s) active, %d subscriber(s), %d visitor(s)",
|
||||||
|
|
Loading…
Reference in New Issue