fix: Don't log stack trace when fetching latest version fails (#1959)

This commit is contained in:
Muppetteer
2025-12-24 02:36:10 +11:00
committed by GitHub
parent 49dabf8549
commit 36d5f9e6e0

View File

@@ -36,7 +36,7 @@ public class VersionService {
try {
latest = fetchLatestGitHubReleaseVersion();
} catch (Exception e) {
log.error("Error fetching latest release version", e);
log.warn("Error fetching latest release version");
}
return new VersionInfo(appVersion, latest);
}
@@ -57,7 +57,7 @@ public class VersionService {
return root.path("tag_name").asText("unknown");
} catch (Exception e) {
log.error("Failed to fetch latest release version", e);
log.warn("Failed to fetch latest release version");
return "unknown";
}
}