Comment 2 for bug 1802142

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.log (master)

Reviewed: https://review.openstack.org/616605
Committed: https://git.openstack.org/cgit/openstack/oslo.log/commit/?id=a2956d7ff08f7657dc68c78f860bcc9eb2e5a8fb
Submitter: Zuul
Branch: master

commit a2956d7ff08f7657dc68c78f860bcc9eb2e5a8fb
Author: Nikita Gerasimov <email address hidden>
Date: Thu Nov 8 19:26:03 2018 +0300

    Fix handling of exc_info in OSJournalHandler

    exc_info is exception tuple not intended to be printed. It's using to
    generate output by logging.Formatter().formatException() instead.
    exc_text used to cache this output. So we use handler formatter to get
    string from exc_info and send it as EXCEPTION_INFO. EXCEPTION_TEXT is
    kept for backward compatibility.

    Also adds type validation for journal.send fields to unit tests. Known
    types could be gotten from journal.DEFAULT_CONVERTERS. The rest payload
    must be either a string or bytes.

    Change-Id: Idc0b9edc61b4ec39dc9df0ea8282cc104e4d83c0
    Closes-Bug: 1802142