Eric Roshan Eisner created BEAM-6941:
----------------------------------------
Summary: Logs include exception="None\n" when there is no exception
Key: BEAM-6941
URL: https://issues.apache.org/jira/browse/BEAM-6941
Project: Beam
Issue Type: Bug
Components: sdk-py-core
Reporter: Eric Roshan Eisner
All python SDK logs emit an exception field even when there is no exception.
Weirdly, the field is "None\n" with a trailing newline that does not appear in
any other field. This field should be omitted when there is no exception, so
that searches for "exception" will not return so many spurious results
Example from stackdriver logging in a python job using dataflow runner:
jsonPayload: {
exception: "None
"
job: "2019-03-28_18_01_16-4563580283031363654"
logger: "root:cloud_logging.py:EmitLogMessages"
message: "baz"
stage: "s01"
step: "EmitLogs"
thread: "132:139730156779264"
worker: "df2-cloud-logging-python--03281801-ilme-harness-7sw5"
}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)