Only setup stack trace logging when in development environment.