Browse Source

[ruby/padrino] Disable logging (#9743)

+-----------------------+-----+-----+-----+------+-------+---------+--------------+
|            branch_name| json|   db|query|update|fortune|plaintext|weighted_score|
+-----------------------+-----+-----+-----+------+-------+---------+--------------+
|                 master|48825|23743|11754|  7389|  18988|    74963|           940|
|padrino/disable-logging|51384|25087|12025|  8087|  18908|    79184|           999|
+-----------------------+-----+-----+-----+------+-------+---------+--------------+
Petrik de Heus 4 months ago
parent
commit
e1bd111e60
1 changed files with 3 additions and 3 deletions
  1. 3 3
      frameworks/Ruby/padrino/app/app.rb

+ 3 - 3
frameworks/Ruby/padrino/app/app.rb

@@ -32,13 +32,13 @@ module HelloWorld
     # set :raise_errors, true       # Raise exceptions (will stop application) (default for test)
     # set :raise_errors, true       # Raise exceptions (will stop application) (default for test)
     # set :dump_errors, true        # Exception backtraces are written to STDERR (default for production/development)
     # set :dump_errors, true        # Exception backtraces are written to STDERR (default for production/development)
     # set :show_exceptions, true    # Shows a stack trace in browser (default for development)
     # set :show_exceptions, true    # Shows a stack trace in browser (default for development)
-    # set :logging, true            # Logging in STDOUT for development and file for production (default only for development)
+    set :logging, false             # Logging in STDOUT for development and file for production (default only for development)
     # set :public_folder, 'foo/bar' # Location for static assets (default root/public)
     # set :public_folder, 'foo/bar' # Location for static assets (default root/public)
     # set :reload, false            # Reload application files (default in development)
     # set :reload, false            # Reload application files (default in development)
     # set :default_builder, 'foo'   # Set a custom form builder (default 'StandardFormBuilder')
     # set :default_builder, 'foo'   # Set a custom form builder (default 'StandardFormBuilder')
     # set :locale_path, 'bar'       # Set path for I18n translations (default your_apps_root_path/locale)
     # set :locale_path, 'bar'       # Set path for I18n translations (default your_apps_root_path/locale)
-    disable :sessions             # Disabled sessions by default (enable if needed)
-    disable :flash                # Disables sinatra-flash (enabled by default if Sinatra::Flash is defined)
+    disable :sessions               # Disabled sessions by default (enable if needed)
+    disable :flash                  # Disables sinatra-flash (enabled by default if Sinatra::Flash is defined)
     # layout  :my_layout            # Layout can be in views/layouts/foo.ext or views/foo.ext (default :application)
     # layout  :my_layout            # Layout can be in views/layouts/foo.ext or views/foo.ext (default :application)
     #
     #