rollbar / rollbar-php-wordpress

Official WordPress plugin from Rollbar, Inc.
https://rollbar.com/
GNU General Public License v2.0
15 stars 20 forks source link

WP_ENV is not used #68

Closed ArturMoczulski closed 5 years ago

ArturMoczulski commented 5 years ago

From Wordpress support forums:

I have WP_ENV specified in wp-config:
define( ‘WP_ENV’, ‘development’ );

But it doesn’t appear on the settings page: http://take.ms/sGd8U

Also, in email notifications:
Environment:    unknown

https://wordpress.org/support/topic/wp_env-is-not-used/

svandragt commented 5 years ago

It's the server environment variable that needs to be set as a getenv() call is used (https://secure.php.net/manual/en/function.getenv.php) to detect it's presence.

See https://github.com/rollbar/rollbar-php-wordpress/blob/8c8dc1c8ebd176c44fcabaa237159b87a2361ac9/src/Plugin.php#L60

ArturMoczulski commented 5 years ago

Good point @svandragt

ethanclevenger91 commented 5 years ago

Is there any reason it can't be configured to use both?