#feature: update log format

This commit is contained in:
2026-01-19 14:21:15 +08:00
parent da3b05b7c0
commit 0646c8612b
7 changed files with 49 additions and 76 deletions

View File

@@ -4,6 +4,7 @@ namespace App\Console\Commands;
use App\Services\GitMonitorService;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Log;
class GitMonitorCacheCommand extends Command
{
@@ -16,11 +17,11 @@ class GitMonitorCacheCommand extends Command
$cache = $monitor->refreshReleaseCache(true);
if (empty($cache)) {
$this->warn('未获取到任何 release 版本信息,请检查配置。');
Log::warning('未获取到任何 release 版本信息,请检查配置。');
return;
}
$this->info(sprintf(
Log::info(sprintf(
'已缓存 %d 个仓库的 release 分支信息。',
count($cache['repositories'] ?? [])
));