diff --git a/components/app/config/initializers/http.rb b/components/app/config/initializers/http.rb new file mode 100644 index 000000000..ee6758602 --- /dev/null +++ b/components/app/config/initializers/http.rb @@ -0,0 +1,8 @@ +# To enable logging for all request & response headers and bodies +HTTP.default_options = HTTP::Options.new( + features: { + logging: { + logger: Logger.new(STDOUT) + } + } +) diff --git a/components/app/spec/support/http.rb b/components/app/spec/support/http.rb new file mode 100644 index 000000000..764688de6 --- /dev/null +++ b/components/app/spec/support/http.rb @@ -0,0 +1,7 @@ +HTTP.default_options = HTTP::Options.new( + features: { + logging: { + logger: Logger.new(IO::NULL) + } + } +)