You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Kenneth Knowles (Jira)" <ji...@apache.org> on 2022/06/03 23:52:00 UTC

[jira] [Commented] (BEAM-6941) Logs include exception="None\n" when there is no exception

    [ https://issues.apache.org/jira/browse/BEAM-6941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17547648#comment-17547648 ] 

Kenneth Knowles commented on BEAM-6941:
---------------------------------------

This issue has been migrated to https://github.com/apache/beam/issues/19385

> 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
>            Priority: P3
>
> 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
(v8.20.7#820007)