Hidding debug messages

I`m writing ruby console app, it uses some Rails gems, and there is a
problem with debug messages that are printed to the console while the
program runs.
This is sql queries, connection setting debug messages, etc.
How can be this messaged be turned off?

Thanks

Vitaliy Y. wrote in post #977412:

I`m writing ruby console app, it uses some Rails gems, and there is a
problem with debug messages that are printed to the console while the
program runs.

Can you check what your RUBYOPT environment variable contains? If it
contains something like “-w -d” or “-w” or “-d” you will see
warnings/debug messages as Ruby code executes.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs