Skip to content

Commit

Permalink
make exception logging more verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jan 19, 2017
1 parent 9e7c397 commit acdbd73
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

All Notable changes to `laravel-permission` will be documented in this file

## 1.6.1 - 2016-01-19
- make exception logging more verbose

## 1.6.0 - 2016-12-27
- added `Role` scope

Expand Down
7 changes: 4 additions & 3 deletions src/PermissionRegistrar.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ public function registerPermissions()
});

return true;
} catch (Exception $e) {
Log::alert('Could not register permissions');
Log::alert(get_class($e).': '.$e->getMessage());
} catch (Exception $exception) {
Log::alert(
"Could not register permissions because {$exception->getMessage()}" . PHP_EOL
. $exception->getTraceAsString());

return false;
}
Expand Down

0 comments on commit acdbd73

Please sign in to comment.