mirror of
https://github.com/Xevion/scla-unsubscribe.git
synced 2025-12-14 14:13:00 -06:00
Lower warn log level, skip empty emails
This commit is contained in:
4
main.go
4
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user