neo4j 5.0.5 → 5.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0536bcc717e29361c0ed63edd6925c869dffa3cf
4
- data.tar.gz: 151dfdeaa0c241f5fd68004744c751a9b075528a
3
+ metadata.gz: 1ba168983e2a2af0eb628d81329aa14f7f0ffae8
4
+ data.tar.gz: 9785f72a45278db7810578a5cb8fc0d053402a6f
5
5
  SHA512:
6
- metadata.gz: 458024ed75508cf2f176ec3cb2cc94cf40501addf10b82d2d815b2c7dc8ef6b696e550ad8dcd9131c36fbb2539fc66cd551503999ac7bbbf0dd98f24e13f9650
7
- data.tar.gz: 40591bc7a5ff7d2edaef2570eb4791c7b50c29a981b8597f7f45a4c8530c077cd852a0c1efe0b0f031ab85f9748efa0024534796c4ade8e7253c5c559ad431cc
6
+ metadata.gz: 5597182030aed02d00abcd855276d9057cbb35a0bcfa333d969d4565a1d8a36e01ab1d3a488fdae9329bfd4e02fd3df2b124bb921fefdc63aab87f682d41f754
7
+ data.tar.gz: 247e9c2c4175ff9ec335f4016b2230c8e3f3745c34cb5b762be6f34247191f8ae645b4a61fdad25696f9a9f57ac8ff592a8ba531cb6c944c2a06db82342b2287
@@ -72,12 +72,18 @@ module Neo4j
72
72
  return if @neo4j_cypher_logging_registered
73
73
 
74
74
  Neo4j::Server::CypherSession.log_with do |message|
75
- puts message
75
+ (Neo4j::Config[:logger] || Rails.logger).info message
76
76
  end
77
77
 
78
78
  @neo4j_cypher_logging_registered = true
79
79
  end
80
80
 
81
+ console do
82
+ Neo4j::Config[:logger] = ActiveSupport::Logger.new(STDOUT)
83
+
84
+ register_neo4j_cypher_logging
85
+ end
86
+
81
87
  # Starting Neo after :load_config_initializers allows apps to
82
88
  # register migrations in config/initializers
83
89
  initializer 'neo4j.start', after: :load_config_initializers do |app|
@@ -90,10 +96,8 @@ module Neo4j
90
96
  end
91
97
  Neo4j::Config.configuration.merge!(cfg.to_hash)
92
98
 
93
- register_neo4j_cypher_logging if Neo4j::Config[:log_cypher_queries]
94
- end
99
+ Neo4j::Config[:logger] ||= Rails.logger
95
100
 
96
- console do
97
101
  register_neo4j_cypher_logging
98
102
  end
99
103
  end
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '5.0.5'
2
+ VERSION = '5.0.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo4j
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.5
4
+ version: 5.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Ronge, Brian Underwood, Chris Grigg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-20 00:00:00.000000000 Z
11
+ date: 2015-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: orm_adapter