Skip to content

Commit fe8ab0b

Browse files
authored
Merge pull request #523 from wri/chore/silence_warnings
Silence noisy warnings that are not important
2 parents 9b277c7 + 1cce434 commit fe8ab0b

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ gem "rack", "~> 3.0.11"
102102

103103
# Utilities
104104
gem "nokogiri"
105+
gem "warning", require: false # for silencing certain warnings, will require before boot in warings_silencer.rb
105106

106107
# Only used in rake tasks
107108
gem "http", require: false # protected areas job

Gemfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,7 @@ GEM
766766
useragent (0.16.11)
767767
warden (1.2.9)
768768
rack (>= 2.0.9)
769+
warning (1.5.0)
769770
web-console (4.2.1)
770771
actionview (>= 6.0.0)
771772
activemodel (>= 6.0.0)
@@ -878,6 +879,7 @@ DEPENDENCIES
878879
super_diff
879880
tzinfo-data
880881
uglifier
882+
warning
881883
web-console (>= 4.1.0)
882884
webmock
883885
whenever

config/application.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# frozen_string_literal: true
22

3+
require_relative "warnings_silencer"
34
require_relative "boot"
45

56
require "rails"

config/warnings_silencer.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
require "warning"
2+
3+
# ignore gdal warnings
4+
Warning.ignore(/undefining the allocator of T_DATA class/)
5+
Warning.ignore(/undefining the allocator of T_DATA class SWIG::TYPE_p_f_double_p_q_const__char_p_void__int/)

0 commit comments

Comments
 (0)