feat: print build info at startup; version placeholders filled in by CI [CI SKIP]

This commit is contained in:
justme committed 2026-10-09 13:20:30 +08:00
1 parent a9f78f99df
commit 7ff0d0f4e6
14 files changed
+42 -14

No files matched your search

+8 -1
View File
@@ -1,3 +1,10 @@
using MoShiro.Backend;
await BackendHost.Build(args).RunAsync();
WebApplication app = BackendHost.Build(args);
// 启动时打一行构建信息:版本、tag、提交、构建时间(和 Agent、Probe 启动时打的是同一组)
if (app.Logger.IsEnabled(LogLevel.Information))
{
app.Logger.LogInformation("moshiro backend starting: version {BuildInfo}", MoShiro.Protocol.BuildInfo.Summary);
}
await app.RunAsync();