Note: Please go to docs.rightscale.com to access the current RightScale documentation set. Also, feel free to Chat with us!
Home > Clouds > AWS > AWS FAQs > How do I supress RightAWS Gem errors?

How do I supress RightAWS Gem errors?

Table of Contents
Background Information

The logging output from this library can be very verbose. Some may want to supress this.

 


Answer

If you don't pass a Logger object in as a parameter to the constructor of RightAws::Ec2, then log output is directed to standard output (stdout).

The correct usage is:

ec2 = RightAws::Ec2.new(your_access_key, your_secret_key, {:logger => })

You can change the Logger object to point anywhere you would like; for example, a log file somewhere, standard error (stderr), /dev/null, etc.

You must to post a comment.
Last modified
21:24, 16 May 2013

Tags

ec2

Classifications

This page has no classifications.

Announcements

None


© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.