# File src/ruby_supportlib/phusion_passenger/vendor/union_station_hooks_core/lib/union_station_hooks_core/transaction.rb, line 47
    def message(text)
      if !@connection
        log_message_to_null(text)
        return
      end

      @connection.synchronize do
        if !@connection.connected?
          log_message_to_null(text)
          return
        end

        UnionStationHooks::Log.debug('[Union Station log] ' \
          "#{@txn_id} #{Utils.encoded_timestamp} #{text}")

        io_operation do
          @connection.channel.write('log', @txn_id, Utils.encoded_timestamp)
          @connection.channel.write_scalar(text)
        end
      end
    end