Skip to content

Commit

Permalink
Twiml Endpoint Request Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
samnang committed Sep 1, 2023
1 parent f94e7fd commit c8c3ae8
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 c8c3ae8

Please sign in to comment.