lib/openvpn-status-web.rb in openvpn-status-web-1.0.0 vs lib/openvpn-status-web.rb in openvpn-status-web-1.0.1
- old
+ new
@@ -6,10 +6,10 @@
require 'ipaddr'
require 'yaml'
require 'rack'
require 'erb'
require 'metriks'
-require 'better_errors'
+require 'better_errors' if ENV['RACK_ENV'] == "development"
require 'openvpn-status-web/status'
require 'openvpn-status-web/parser/v1'
require 'openvpn-status-web/parser/v2'
require 'openvpn-status-web/parser/v3'