ruby - Model-specific SQL logging in rails -


In my rail application, I have a background process runner, model name worker, who checks for new tasks that run every 10 seconds. . This test generates two SQL queries every time - to search for a new job, to remove an old accomplished

Problems with it - The main log file is spam for all those queries.

Can I generate SQL queries in a separate log file by the worker model, or less Can I give them silence? Overwriting worker. The logger is not working - it only redirects messages that are explicitly logger Debug ("some") is called.

The simplest and most idiomatic solution

  logger sealance do dot com end  

View


Comments

Popular posts from this blog

email - PHP mail error ... failed to open stream : permission denied -

c# - ListView onScroll event -

c - Linux mmap() error -