fix : 로그, 알람 설정 수정
This commit is contained in:
@@ -10,7 +10,10 @@ class Handler extends ExceptionHandler
|
||||
{
|
||||
public function report(Throwable $e): void
|
||||
{
|
||||
if (app()->environment('local') || app()->environment('production')) {
|
||||
if (
|
||||
app()->environment('local') || app()->environment('production')
|
||||
|| app()->environment('LOCAL') || app()->environment('DEV')
|
||||
) {
|
||||
$this->sendSlackException($e);
|
||||
}
|
||||
|
||||
@@ -25,7 +28,7 @@ protected function sendSlackException(Throwable $e): void
|
||||
if (!$url) return;
|
||||
|
||||
Http::post($url, [
|
||||
'text' => "*🚨 Laravel 예외 발생!*\n" .
|
||||
'text' => "*🚨[".env('APP_ENV')."] Laravel 예외 발생!*\n" .
|
||||
"• 메시지: `{$e->getMessage()}`\n" .
|
||||
"• 위치: `{$e->getFile()}:{$e->getLine()}`\n" .
|
||||
"• 시간: " . now()->toDateTimeString()
|
||||
|
||||
Reference in New Issue
Block a user