Skip to content

Navigation Menu

Sign in
Sign up

Feature Request: Disable lambda_unhandled_exception_warning_message #139

Open

Description

The lambda_unhandled_exception_warning_message (LAMBDA_WARNING: Unhandled exception...) is ~ 633 chars and adds little value to our debugging. I understand the desire to warn people the runtime may have changed underfoot, and that's why their code is raising exceptions, but I'd like a way to disable it.

A pr from me would probably be something like

_disable_unhandled_exception_warning = bool(os.environ.get("AWS_LAMBDA_EXCEPTION_WARNING_DISABLE"))
# SNIP ...
if _disable_unhandled_exception_warning:
 from .lambda_literals import lambda_unhandled_exception_warning_message
 log_sink.log(lambda_unhandled_exception_warning_message, _WARNING_FRAME_TYPE)
log_error(error_result, log_sink)
lambda_runtime_client.post_invocation_error(
 invoke_id, to_json(error_result), to_json(xray_fault)
)

near

log_sink.log(lambda_unhandled_exception_warning_message, _WARNING_FRAME_TYPE)

Perhaps you have a different idea? Or maybe this is a non-starter. Didn't want to clutter PRs before asking.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      AltStyle によって変換されたページ (->オリジナル) /