Top Level Namespace

Defined Under Namespace

Modules: JavaIO

Instance Method Summary collapse

Instance Method Details

#suppress_all_warningsObject



2
3
4
5
6
7
8
9
10
11
# File 'lib/logstash/filters/geoip/patch.rb', line 2

def suppress_all_warnings
  old_verbose = $VERBOSE
  begin
    $VERBOSE = nil
    yield if block_given?
  ensure
    # always re-set to old value, even if block raises an exception
    $VERBOSE = old_verbose
  end
end