debug logging can help troubleshoot your standard Python agent installation.
Some partners use different procedures:
- Open your newrelic.ini, usually located within your app hierarchy.
#log_file = /tmp/newrelic-python-agent.log. Ensure you have write permissions to the log location, changing the path and file name if necessary. If there is no suitable file location, you can set
debugcan generate a lot of data very quickly. Monitor the size of your log file closely, changing
infoas you finish troubleshooting.
Save and close the file. Restart your app for the settings to take effect.
Generate a few minutes of traffic to your app.
If sending your log file to New Relic Support, attach your newrelic.ini to your support ticket, and tell Support your time zone.
For more help
Additional documentation resources include:
- Python agent logging (general overview of Python agent logging)