Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

Commit 03cdefe

Browse files
authored
[ruby/sinatra] Disable logging middleware (#10620)
1 parent 87d8c54 commit 03cdefe

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

frameworks/Ruby/sinatra-sequel/hello_world.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ class HelloWorld < Sinatra::Base
3030

3131
# Only add the charset parameter to specific content types per the requirements
3232
set :add_charset, [mime_type(:html)]
33+
34+
# Disable logging middleware
35+
set :logging, nil
3336
end
3437

3538
# Test type 1: JSON serialization

frameworks/Ruby/sinatra/hello_world.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ class HelloWorld < Sinatra::Base
3030

3131
# Only add the charset parameter to specific content types per the requirements
3232
set :add_charset, [mime_type(:html)]
33+
34+
# Disable logging middleware
35+
set :logging, nil
3336
end
3437

3538
# Test type 1: JSON serialization

0 commit comments

Comments
 (0)