Skip to content

Logging warnings correctly #4

@hartym

Description

@hartym

Default hides warnings too much. Needs something like...

    if not sys.warnoptions:
        logging.captureWarnings(True)
    warnings.simplefilter("default", DeprecationWarning)
    warnings.simplefilter("default", PendingDeprecationWarning)

Once enabled, too verbose and badly formated...

WARN:0001:py.warnings: ...medikit/medikit/compat.py:25: DeprecationWarning: Using Using "enable_features" and "disable_features" is deprecated since 0.5.0 and will stop working at 0.6.0. Please use require() instead.
  feature, deprecated_in, removed_in, replacement), DeprecationWarning)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions