If you can't find a solution to your problem, please contact us via the chat icon you'll find at the bottom right hand side of your browser window.
Please include the following information in your issue
- Your platform (e.g. macOS, Debian wheezy x86, Ubuntu Precise x64, etc...);
- The output of
blackfire-agent -v
command; - The content of the Probe log file (read below);
- The content of the Agent log file (read below);
PHP
- The output of
php -v
command. - The output of
php -d display_startup_errors=on --ri blackfire
command.
Python
- The output of
pip show blackfire
You can drag and drop files to the chat window.
Getting logs from Blackfire
PHP Probe logs
- Increase the Probe log level to debug by configuring it with
blackfire.log_level=4
andblackfire.log_file=/tmp/blackfire.log
(refer to the Probe configuration for more information); - ⚠️ Do not forget to restart the webserver or PHP-FPM to reload the configuration;
- Profile your code again.
Python Probe logs
- Increase the Probe log level to debug by setting
BLACKFIRE_LOG_LEVEL
to 4BLACKFIRE_LOG_LEVEL=4 blackfire run python example.py
- The default log file is
python-probe.log
.
If the profile is running through Django middleware, the log file is located in the same folder than the Django application wheremanage.py
resides.
If the profile is running viablackfire run
or manually, the log file is located in the same folder than the profiled script. - You may customize the location of the log file by setting
BLACKFIRE_LOG_FILE
environment variable.
Agent logs
Note: this does not apply to Magento Cloud and Platform.sh users, who can only get the probe logs.
- Increase the Agent log level to debug by configuring it with
log-level=4
(refer to the Agent configuration for more information). - ⚠️ Do not forget to restart the Agent to reload its configuration.
- Profile your code again
- Get the logs:
- On Linux: default log files are in
/var/log/blackfire/agent.log
- On macOS: default log files are in
/usr/local/var/log/blackfire/agent.log
- On Windows: simply copy/paste the console output.
- On Heroku: log files are in
/app/.blackfire/var/log/agent.log`