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

Moved the logger methods in activeresource/test/abstract_unit.rb #4303

Merged
merged 1 commit into from Jan 5, 2012

Conversation

Karunakar
Copy link
Contributor

Moved the logger methods to active support logger methods in activeresource/test/abstract_unit.rb

@spastorino
Copy link
Contributor

@Karunakar can you change all the logger lines on Rails and make them use AS::Logger please?
Thanks.

@Karunakar
Copy link
Contributor Author

@spastorino I have changed in all the files.

@@ -786,7 +786,7 @@ def setup
@cache = ActiveSupport::Cache.lookup_store(:memory_store)

@buffer = StringIO.new
@cache.logger = Logger.new(@buffer)
@cache.logger =ActiveSupport::Logger.new(@buffer)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a space here :)

@spastorino
Copy link
Contributor

And squash all the commits in one please. Thanks for the work!

@Karunakar
Copy link
Contributor Author

Thanks done. Seems that we can get rid of the ./lib/active_support/buffered_logger.rb. Deleting this in next commit.
is that ok?

@@ -206,7 +206,7 @@ A short rundown of some of the major features:

You specify a logger through a class method, such as:

ActionController::Base.logger = Logger.new("Application Log")
ActionController::Base.logger = AcitveSupport::Logger.new("Application Log")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small typo here ;)

@Karunakar
Copy link
Contributor Author

@jonasschneider & @spastorino Its my bad,Thanks. can we get rid of ./lib/active_support/buffered_logger.rb and related stuff

spastorino added a commit that referenced this pull request Jan 5, 2012
Moved the logger methods in activeresource/test/abstract_unit.rb
@spastorino spastorino merged commit 013d959 into rails:master Jan 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants