<?php

declare(strict_types=1);

namespace App\Listeners\Database;

use Illuminate\Database\Events\DatabaseBusy;
use Illuminate\Support\Facades\Log;

class LogDatabaseBusy
{
    public function handle(DatabaseBusy $event): void
    {
        Log::info('DatabaseBusy', [
            'connectionName' => $event->connectionName,
            'connections' => $event->connections,
        ]);
    }
}
