fix : 로그, 알람 설정 수정

This commit is contained in:
2025-07-25 09:12:53 +09:00
parent 19839323ae
commit 181f1b258f
2 changed files with 6 additions and 21 deletions

View File

@@ -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()