ruby - Disable Rack::CommonLogger without monkey patching -
so, want have custom logging sinatra application, can't seem disable rack::commonlogger.
as per sinatra docs should need add following line (tried setting false well):
set :logging, nil to configuration. not work however, , still receive apache-like log messages in terminal. solution i've found far monkey patch damn thing.
module rack class commonlogger def call(env) # nothing @app.call(env) end end end anyone got ideas if it's possible disable without restorting such matters?
puma adds logging middleware app if in development mode , haven’t set --quiet option.
to stop puma logging in development, pass -q or --quiet option on command line:
puma -p 3001 -q or if using puma config file, add quiet it.
Comments
Post a Comment