Skip to content

Commit

Permalink
log error
Browse files Browse the repository at this point in the history
  • Loading branch information
canisterism committed Jul 22, 2023
1 parent e9bcc3c commit 686ede1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/app/controllers/graphql_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def execute
result = BackendSchema.execute(query, variables:, context:, operation_name:)
render json: result
rescue StandardError => e
Rails.logger.error e.message
raise e unless Rails.env.development?

handle_error_in_development(e)
Expand Down

0 comments on commit 686ede1

Please sign in to comment.