ruby - Message/logging from Thin -



ruby - Message/logging from Thin -

how can stop rack lean returning initial messages of next type?

>> lean web server (v1.3.1 codename triple espresso) >> maximum connections set 1024 >> istening on 0.0.0.0:3000, ctrl+c stop

i using this:

rack::handler::thin.run(rack::builder.new map("/resource/"){run(rack::file.new("/"))} map("/") run(->env{ h = rack::utils.parse_nested_query(env["query_string"]) [200, {},[routine_to_generate_dynamic_content(h)]] }) end end, port: 3000)

those messages not come rack, come thin: https://github.com/macournoyer/thin/blob/master/lib/thin/server.rb#l150 can set logging preferences according this: https://github.com/macournoyer/thin/blob/master/lib/thin/logging.rb thin::logging.silent = true, want quiet all? maybe direct log file instead of stdout?

ruby logging rack thin

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -