Skip to content

Commit

Permalink
fix tinker logs not being sent to Flare
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche committed Feb 2, 2021
1 parent 66b3138 commit 8bbc0a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `ignition` will be documented in this file

## 2.5.10 - 2021-02-02

- fix tinker logs not being sent to Flare

## 2.5.9 - 2021-01-26

- fix logged context not being sent to Flare
Expand Down
5 changes: 5 additions & 0 deletions src/IgnitionServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Facade\Ignition;

use Exception;
use Facade\FlareClient\Api;
use Facade\FlareClient\Flare;
use Facade\FlareClient\Http\Client;
use Facade\Ignition\Commands\SolutionMakeCommand;
Expand Down Expand Up @@ -78,6 +79,10 @@ public function boot()
$this->publishes([
__DIR__.'/../config/ignition.php' => config_path('ignition.php'),
], 'ignition-config');

if(['artisan', 'tinker'] === $_SERVER['argv']) {
Api::sendReportsInBatches(false);
}
}

$this
Expand Down

0 comments on commit 8bbc0a3

Please sign in to comment.