#feature: update log format

This commit is contained in:
2026-01-19 15:42:44 +08:00
parent 0646c8612b
commit ddd0f531fd
9 changed files with 180 additions and 170 deletions

View File

@@ -17,11 +17,11 @@ class GitMonitorCacheCommand extends Command
$cache = $monitor->refreshReleaseCache(true);
if (empty($cache)) {
Log::warning('未获取到任何 release 版本信息,请检查配置。');
Log::channel('git-monitor')->warning('未获取到任何 release 版本信息,请检查配置。');
return;
}
Log::info(sprintf(
Log::channel('git-monitor')->info(sprintf(
'已缓存 %d 个仓库的 release 分支信息。',
count($cache['repositories'] ?? [])
));