【发布时间】:2016-03-04 00:22:26
【问题描述】:
所以我跟着these instructions 寻找我的流浪者盒子,一切似乎都很好,我的意思是它正在运行。它已经配置了它的服务器 ID 和服务器令牌。
然后我按照同一页面上的说明安装了 PHP Probe,并在完成后重新启动了 apache2。然后我做了composer require
blackfire/php-sdk,最后在我的代码中我做了:
$probe = $blackfire->createProbe();
// some PHP code you want to profile
$blackfire->endProbe($probe);
dd('End here.'); // Laravels die and dump function.
据我所知,我做的一切都是正确的。然后,在我的控制台中我做了:
vagrant@scotchbox:/var/www$ php artisan fetch_eve_online_region_type_history_information
[Blackfire\Exception\ApiException]
401: while calling GET https://blackfire.io/api/v1/collab-tokens [context: NULL] [headers: array (
0 => 'Authorization: Basic xxxxxx=',
1 => 'X-Blackfire-User-Agent: Blackfire PHP SDK/1.0',
)]
// where xxxx is some kind of authentication token that looks different from what I gave as my server id and token.
呃 .... 好的,所以文档说明如果出现问题,请检查日志:
vagrant@scotchbox:/var/www$ cat /var/log/blackfire/agent.log
vagrant@scotchbox:/var/www$
日志中没有任何内容....
我做错了什么?
【问题讨论】:
-
我已经看到你在 GitHub 上为此创建的问题,建议直接与他们联系。如果这里有一般问题或陷阱,您能否分享您为解决问题所做的工作?这将帮助其他有同样问题的人(比如我)。谢谢