Skip to content

Commit

Permalink
Output queries in console to STDOUT instead of Rails log file
Browse files Browse the repository at this point in the history
  • Loading branch information
cheerfulstoic committed Jun 30, 2015
1 parent 5a1e86f commit d1f928c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased][unreleased]

## [5.0.2] - 2015-06-30

### Fixed
- Fix error when calling `#empty?` or `#blank?` on a query chain with on `order` specified
- Make `#find_each` and `#find_in_batches` return the actual objects rather than the result objects
- Query logging on console should be to STDOUT with `puts`. Using `Rails.logger` outputs to the file in the `log` directory

## [5.0.1] - 2015-06-23

Expand Down
2 changes: 1 addition & 1 deletion lib/neo4j/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def register_neo4j_cypher_logging
return if @neo4j_cypher_logging_registered

Neo4j::Server::CypherSession.log_with do |message|
Rails.logger.info message
puts message
end

@neo4j_cypher_logging_registered = true
Expand Down
2 changes: 1 addition & 1 deletion lib/neo4j/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Neo4j
VERSION = '5.0.1'
VERSION = '5.0.2'
end

0 comments on commit d1f928c

Please sign in to comment.