Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too Verbose #154

Open
kurtisnelson opened this issue Jan 28, 2015 · 8 comments
Open

Too Verbose #154

kurtisnelson opened this issue Jan 28, 2015 · 8 comments
Milestone

Comments

@kurtisnelson
Copy link

My tests end up with extra logs all over even though quiet is set to true.

I, [2015-01-28T11:05:01.784513 #39139]  INFO -- : Parse query for /1/classes/Drink {"where"=>"{\"objectId\":\"OvkpxtFVOz\"}"}
I, [2015-01-28T11:05:01.784987 #39139]  INFO -- : get https://api.parse.com/1/classes/Drink?where=%7B%22objectId%22%3A%22OvkpxtFVOz%22%7D
I, [2015-01-28T11:05:01.801498 #39139]  INFO -- Status: 200
@adelevie
Copy link
Owner

Try passing quiet: true in Parse.init. See https://github.com/adelevie/parse-ruby-client#configuration.

Feel free to reopen if this is still a problem.

@kurtisnelson
Copy link
Author

This is my initializer:

Parse.init :application_id => ENV['PARSE_ID'],
  :api_key        => ENV['PARSE_KEY'],
  :master_key     => ENV['PARSE_MASTER_KEY'],
  :quiet           => true

@adelevie adelevie reopened this Jan 28, 2015
@adelevie
Copy link
Owner

Not sure then. (reopening...)

@voanhduy1512
Copy link

Because quite config is in master only, not release yet. Here is the commit 618b551.

@xavdid
Copy link
Collaborator

xavdid commented Mar 6, 2015

Bingo! If you want to use this feature now, change your gemfile to point to the master branch and run bundle exec ruby FILENAME.rb per #145

@voanhduy1512
Copy link

@adelevie I think you should release new version (say 0.4.0) with include this feature. As I see it's a importance feature and is in master for a long time

@EmilioCristalli
Copy link

I think in the meantime, until the new version is released, you can reduce the logs by setting a new Logger in the initializer, and make it log only warnings or more severe messages:

    Parse.init application_id: 'APPLICATION_ID',
           api_key: 'API_KEY',
           logger: Logger.new(STDERR).tap { |logger| logger.level = Logger::WARN }

@xavdid
Copy link
Collaborator

xavdid commented Apr 23, 2015

honestly, this is probably a better solution because my original fix silences all logging. Would love to get an elegant solution to passing in like, loud, quiet, silent for log level.

@rhymes rhymes added this to the 1.0.0 milestone Jun 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants