Skip to content

Commit

Permalink
(#555) hanya jalankan filp/whoops di mode development
Browse files Browse the repository at this point in the history
  • Loading branch information
totoprayogo1916 authored Dec 2, 2023
1 parent da931f7 commit b4efc24
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions donjo-app/hooks/WhoopsHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ class WhoopsHook
{
public function bootWhoops()
{
$whoops = new \Whoops\Run();
$whoops->pushHandler(new Whoops\Handler\PrettyPageHandler());
$whoops->register();
if(ENVIRONMENT === 'development') {
$whoops = new \Whoops\Run();
$whoops->pushHandler(new Whoops\Handler\PrettyPageHandler());
$whoops->register();
}
}
}

0 comments on commit b4efc24

Please sign in to comment.