dashboard/app: don't log updates to closed bugs

These happen and we specifically treat them as non-bugs.
Don't log them as errors as well.
This commit is contained in:
Dmitry Vyukov 2018-03-19 11:57:45 +01:00
parent 7e7d7ed26a
commit 8884d5d1e6

View File

@ -323,7 +323,7 @@ func incomingCommand(c context.Context, cmd *dashapi.BugUpdate) (bool, string, e
ok, reason, err := incomingCommandImpl(c, cmd)
if err != nil {
log.Errorf(c, "%v (%v)", reason, err)
} else if !ok {
} else if !ok && reason != "" {
log.Warningf(c, "invalid update: %v", reason)
}
return ok, reason, err