lib/neo4j/railtie.rb in neo4j-5.0.4 vs lib/neo4j/railtie.rb in neo4j-5.0.5
- old
+ new
@@ -88,10 +88,10 @@
cfg.sessions.each do |session_opts|
Neo4j::Railtie.open_neo4j_session(session_opts)
end
Neo4j::Config.configuration.merge!(cfg.to_hash)
- register_neo4j_cypher_logging
+ register_neo4j_cypher_logging if Neo4j::Config[:log_cypher_queries]
end
console do
register_neo4j_cypher_logging
end