Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Support Logging #583

Closed
mbleigh opened this Issue · 2 comments

2 participants

@mbleigh
Owner

OmniAuth should have a logger accessible at OmniAuth.logger. This logger should probably just point at STDOUT by default but should be easily settable in, for instance, a Rails app like so:

OmniAuth.config.logger = Rails.logger
@mbleigh mbleigh closed this in 1a16151
@lpsBetty

I am testing invalid credentials:

OmniAuth.config.mock_auth[:facebook] = :invalid_credentials

the test works fine, but I am now getting an output when running tests:

(facebook) Authentication failure! invalid_credentials encountered.

I am using:
omniauth (1.1.0)
hashie (~> 1.2)
rack
omniauth-facebook (1.2.0)
omniauth-oauth2 (~> 1.0.0)

how can I prevent this output?

@lpsBetty

ok
OmniAuth.config.logger = Rails.logger
did it ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.