From: Peter Amstutz Date: Mon, 14 Nov 2022 15:36:39 +0000 (-0500) Subject: Don't send validation warning to runtime status. X-Git-Tag: 2.5.0~36^2 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/8851415af9ae0bd1a6362f1877e34d6c5ff0c46f Don't send validation warning to runtime status. Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- diff --git a/sdk/cwl/arvados_cwl/executor.py b/sdk/cwl/arvados_cwl/executor.py index b042401d6b..447c14b8bf 100644 --- a/sdk/cwl/arvados_cwl/executor.py +++ b/sdk/cwl/arvados_cwl/executor.py @@ -70,6 +70,10 @@ class RuntimeStatusLoggingHandler(logging.Handler): kind = 'error' elif record.levelno >= logging.WARNING: kind = 'warning' + if kind == 'warning' and record.name == "salad": + # Don't send validation warnings to runtime status, + # they're noisy and unhelpful. + return if kind is not None and self.updatingRuntimeStatus is not True: self.updatingRuntimeStatus = True try: