diff --git a/directory.go b/directory.go index 9aaac03..e969b5f 100644 --- a/directory.go +++ b/directory.go @@ -345,7 +345,7 @@ func GetFullEntryCached(id string) (*FullEntry, error) { // Check if key was found if err == badger.ErrKeyNotFound { - log.Warn().Str("key", key).Msg("Entry Cache Not Found") + log.Debug().Str("key", key).Msg("Entry Cache Not Found") return nil } else if err != nil { return errors.Wrap(err, "failed to get entry cache") diff --git a/main.go b/main.go index fce5888..a9e602c 100644 --- a/main.go +++ b/main.go @@ -170,6 +170,10 @@ func main() { log.Fatal().Err(err).Msg("Failed to get full entry") } + if fullEntry.Email == "" { + log.Warn().Str("name", fullEntry.Name).Msg("Entry has no email") + continue + } log.Debug().Str("name", fullEntry.Name).Str("email", fullEntry.Email).Msg("Entry Processed") entries <- fullEntry.Email }