Skip to content

Commit

Permalink
Update Seeder.php
Browse files Browse the repository at this point in the history
Fix - do not print debug info on every seeder but only after main seeder finishes (DatabaseSeeder)
  • Loading branch information
chojnicki authored May 22, 2020
1 parent 509c0c8 commit b3e6b16
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Seeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public function __construct()
*/
public function __destruct()
{
if (get_class($this) != 'DatabaseSeeder') return; // print debug only on main seeder

if (! $this->debug) return;

/* Debug execution time */
Expand Down

0 comments on commit b3e6b16

Please sign in to comment.