mirror of
https://github.com/booklore-app/booklore.git
synced 2025-12-23 22:28:11 -05:00
fix: Don't log stack trace when fetching latest version fails (#1959)
This commit is contained in:
@@ -36,7 +36,7 @@ public class VersionService {
|
|||||||
try {
|
try {
|
||||||
latest = fetchLatestGitHubReleaseVersion();
|
latest = fetchLatestGitHubReleaseVersion();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("Error fetching latest release version", e);
|
log.warn("Error fetching latest release version");
|
||||||
}
|
}
|
||||||
return new VersionInfo(appVersion, latest);
|
return new VersionInfo(appVersion, latest);
|
||||||
}
|
}
|
||||||
@@ -57,7 +57,7 @@ public class VersionService {
|
|||||||
return root.path("tag_name").asText("unknown");
|
return root.path("tag_name").asText("unknown");
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("Failed to fetch latest release version", e);
|
log.warn("Failed to fetch latest release version");
|
||||||
return "unknown";
|
return "unknown";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user