Project

General

Profile

Actions

Feature #2757

closed

Show errors logs in the production.log for the API

Added by Lukas Zapletal almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Difficulty:
easy
Triaged:
Fixed in Releases:
Found in Releases:

Description

When I call any Foreman New API service and it fails during saving in ActiveRecord, only ActiveRecord::RecordNotSaved exception (message) is shown and the reason (errors array) is hidden.

We need to use either save! method when saving or handing the active record object into the base controller for checks.

Actions

Also available in: Atom PDF