Skip to content

Exception noise from OAuth and REST (API2 ) #4501

Open
@kiatng

Description

@kiatng

I have a project with OAuth REST which is interfacing with a mobile app. The exception.log is filling up with millions of lines due to unnecessary logs:

Mage_Api2_Exception: oauth_problem=token_rejected in .../app/code/core/Mage/Api2/Model/Auth/Adapter/Oauth.php:49
Mage_Api2_Exception: Missing required params in .../app/code/core/Mage/Api2/Model/Resource.php:629
Mage_Oauth_Exception in .../app/Mage.php:648, .../app/code/core/Mage/Oauth/Model/Server.php(421)

Each exception has 11 lines or more.

Preconditions (*)

Any version.

Steps to reproduce (*)

May be by unit tests?

Expected result (*)

  1. Do not Mage::logException($e) for Mage_Api2_Exception and Mage_Oauth_Exception?
  2. Only log one line per exception?

Actual result (*)

Noise in exception.log making it hard to detect the signal, problems that require attention.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions