# File lib/phusion_passenger/analytics_logger.rb, line 53 def message(text) @connection.synchronize do return if !@connection.connected? begin @connection.channel.write("log", @txn_id, AnalyticsLogger.timestamp_string) @connection.channel.write_scalar(text) rescue SystemCallError, IOError => e @connection.disconnect DebugLogging.warn("Error communicating with the logging agent: #{e.message}") rescue Exception => e @connection.disconnect raise e end end if @connection end