From 8884d5d1e6b2892fe1c050b2fe8cc62db5971681 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 19 Mar 2018 11:57:45 +0100 Subject: [PATCH] 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. --- dashboard/app/reporting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/app/reporting.go b/dashboard/app/reporting.go index ba82414f..0c0b3532 100644 --- a/dashboard/app/reporting.go +++ b/dashboard/app/reporting.go @@ -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