Method: Mongo::Monitoring::CommandLogSubscriber#started
- Defined in:
- lib/mongo/monitoring/command_log_subscriber.rb
#started(event) ⇒ Object
Handle the command started event.
58 59 60 61 62 63 64 65 66 67 |
# File 'lib/mongo/monitoring/command_log_subscriber.rb', line 58 def started(event) if logger.debug? _prefix = prefix(event, connection_generation: event.connection_generation, connection_id: event.connection_id, server_connection_id: event.server_connection_id, ) log_debug("#{_prefix} | STARTED | #{format_command(event.command)}") end end |