Skip to content

Commit

Permalink
Merge pull request #312 from somleng/twiml_endpoint_request_logging
Browse files Browse the repository at this point in the history
Twiml Endpoint Request Logging
  • Loading branch information
samnang committed Sep 1, 2023
2 parents f94e7fd + c8c3ae8 commit 2113fee
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/app/config/initializers/http.rb
Original file line number Diff line number Diff line change
@@ -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)
}
}
)
7 changes: 7 additions & 0 deletions components/app/spec/support/http.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
HTTP.default_options = HTTP::Options.new(
features: {
logging: {
logger: Logger.new(IO::NULL)
}
}
)

0 comments on commit 2113fee

Please sign in to comment.