Skip to content

Add optional logging to _az_RETURN_IF_* #2608

Open
@CIPop

Description

Is your feature request related to a problem? Please describe.
I'm always frustrated when I can't figure out which exact _az_RETURN_IF_FAILED returned from my SDK function. (for example, in _az_iot_provisioning_client_payload_registration_state_parse())

Describe the solution you'd like
A clear and concise description of which line of code failed should exist in the logs: _az_RETURN_IF_FAILED(az_json_reader_next_token(jr)); in az_iot_provisioning_client.c:322

This functionality should be optional as it does increase the binary size substantially.

Additional context
Add any other context or screenshots about the feature request here.

Information Checklist
Please make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • Description Added
  • Expected solution specified

Metadata

Assignees

No one assigned

    Labels

    Azure.CoreClientThis issue points to a problem in the data-plane of the library.feature-requestThis issue requires a new behavior in the product in order be resolved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions