This file is indexed.

/usr/lib/ruby/vendor_ruby/influxdb/logging.rb is in ruby-influxdb 0.2.3-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'logger'

module InfluxDB
  module Logging # :nodoc:
    PREFIX = "[InfluxDB] "

    class << self
      attr_writer :logger
    end

    def self.logger
      return false if @logger == false
      @logger ||= ::Logger.new(STDERR).tap { |logger| logger.level = Logger::INFO }
    end

    private

    def log(level, message)
      InfluxDB::Logging.logger.send(level.to_sym, PREFIX + message) if InfluxDB::Logging.logger
    end
  end
end