OSC / nginx_stage

[MOVED] Stages & controls the per-user NGINX environment
https://github.com/OSC/ondemand/tree/master/nginx_stage
MIT License
0 stars 1 forks source link

Hide "No passenger_native_support.so" warning for Ruby apps #39

Open nickjer opened 6 years ago

nickjer commented 6 years ago

When Passenger starts in a user's PUN this message appears in their NGINX error logs:

App 15059 stderr:  --> No passenger_native_support.so found for current Ruby interpreter.
App 15059 stderr:      This library provides various optimized routines that make
App 15059 stderr:      Phusion Passenger faster. Please run 'sudo yum install passenger-devel-4.0.50'
App 15059 stderr:      so that Phusion Passenger can compile one on the next run.
App 15059 stderr:  --> Continuing without passenger_native_support.so.

This is just a warning and is harmless, but may cause confusion for a sys admin. Ideally we would like to suppress this warning if at all possible.

nickjer commented 6 years ago

This can probably be fixed by adjusting the log level of Passenger:

https://www.phusionpassenger.com/library/config/nginx/reference/#passenger_log_level

But I am hesitant to make such a heavy-handed change for a single warning message. It would be best if we could suppress just the single message above.