Method: Sequel::ServerLogging.extended
- Defined in:
- lib/sequel/extensions/server_logging.rb
.extended(db) ⇒ Object
Initialize the hash mapping connections to shards, and turn on logging of connection info unless it has specifically been turned off.
30 31 32 33 34 35 |
# File 'lib/sequel/extensions/server_logging.rb', line 30 def self.extended(db) db.instance_exec do @server_connection_map ||= {} self.log_connection_info = true if log_connection_info.nil? end end |