Skip to content

Commit acdbd73

Browse files
committed
make exception logging more verbose
1 parent 9e7c397 commit acdbd73

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

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

5+
## 1.6.1 - 2016-01-19
6+
- make exception logging more verbose
7+
58
## 1.6.0 - 2016-12-27
69
- added `Role` scope
710

src/PermissionRegistrar.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ public function registerPermissions()
5050
});
5151

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

5758
return false;
5859
}

0 commit comments

Comments
 (0)