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

  1. Increase the Probe log level to debug by configuring it with blackfire.log_level=4   and blackfire.log_file=/tmp/blackfire.log  (refer to the Probe configuration for more information);
  2. ⚠️  Do not forget to restart the webserver or PHP-FPM to reload the configuration;
  3. Profile your code again.

Python Probe logs

  1. Increase the Probe log level to debug by setting BLACKFIRE_LOG_LEVEL to 4
    BLACKFIRE_LOG_LEVEL=4 blackfire run python example.py  
  2. 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 where manage.py resides.
    If the profile is running via blackfire run or manually, the log file is located  in the same folder than the profiled script.
  3. 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.

  1. Increase the Agent log level to debug by configuring it with log-level=4  (refer to the Agent configuration for more information). 
  2. ⚠️  Do not forget to restart the Agent to reload its configuration.
  3. Profile your code again
  4. 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`
Did this answer your question?