From 2781b8c2f0cb6bbf1f23717dd4140ef5e31d1f68 Mon Sep 17 00:00:00 2001 From: Petrik Date: Mon, 19 Jan 2026 15:10:37 +0100 Subject: [PATCH] [ruby/sinatra] Disable logging middleware --- frameworks/Ruby/sinatra-sequel/hello_world.rb | 3 +++ frameworks/Ruby/sinatra/hello_world.rb | 3 +++ 2 files changed, 6 insertions(+) diff --git a/frameworks/Ruby/sinatra-sequel/hello_world.rb b/frameworks/Ruby/sinatra-sequel/hello_world.rb index cf6cfac54cc..9fa3a2ac10e 100644 --- a/frameworks/Ruby/sinatra-sequel/hello_world.rb +++ b/frameworks/Ruby/sinatra-sequel/hello_world.rb @@ -30,6 +30,9 @@ class HelloWorld < Sinatra::Base # Only add the charset parameter to specific content types per the requirements set :add_charset, [mime_type(:html)] + + # Disable logging middleware + set :logging, nil end # Test type 1: JSON serialization diff --git a/frameworks/Ruby/sinatra/hello_world.rb b/frameworks/Ruby/sinatra/hello_world.rb index 628ce12a6d0..7a0fae50847 100644 --- a/frameworks/Ruby/sinatra/hello_world.rb +++ b/frameworks/Ruby/sinatra/hello_world.rb @@ -30,6 +30,9 @@ class HelloWorld < Sinatra::Base # Only add the charset parameter to specific content types per the requirements set :add_charset, [mime_type(:html)] + + # Disable logging middleware + set :logging, nil end # Test type 1: JSON serialization