This commit is contained in:
Andras Bacsai
2024-11-06 12:39:37 +01:00
parent 275edb6c1f
commit f1587d3302
5 changed files with 8 additions and 6 deletions

View File

@@ -5,6 +5,7 @@ use App\Models\Server;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Schema;
use Visus\Cuid2\Cuid2;
@@ -52,7 +53,7 @@ return new class extends Migration
DB::table('server_settings')->update(['metrics_history_days' => 7]);
} catch (\Exception $e) {
loggy($e);
Log::error('Error updating db: '.$e->getMessage());
}
}

View File

@@ -4,6 +4,7 @@ namespace Database\Seeders;
use App\Models\Server;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Log;
class SentinelSeeder extends Seeder
{
@@ -23,7 +24,7 @@ class SentinelSeeder extends Seeder
}
}
} catch (\Throwable $e) {
loggy("Error: {$e->getMessage()}\n");
Log::error('Error seeding sentinel: '.$e->getMessage());
}
}
});