Skip to content

Allow apps to configure faraday logger #80

@grantr

Description

@grantr

This code in haystack reaches into elastomer-client's Faraday object to set the logger:

if Rails.env.development?
    Haystack.elastomer_client.connection.response :logger, Rails.logger
  end

https://github.com/github/haystack/blob/master/config/initializers/elasticsearch.rb#L18-L20

This shouldn't be necessary. Elastomer::Client should provide a method to set a logger object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions