1
0
Fork 0

[BRANDING] healthcheck/check.go

(cherry picked from commit d703a236ce)
(cherry picked from commit d84ce3ff20)
This commit is contained in:
firefly-cpp 2023-08-28 23:11:04 +02:00 committed by Earl Warren
parent 607f870416
commit 2dbb844606
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -105,7 +105,7 @@ func checkDatabase(ctx context.Context, checks checks) status {
if !setting.EnableSQLite3 { if !setting.EnableSQLite3 {
st.Status = fail st.Status = fail
st.Time = getCheckTime() st.Time = getCheckTime()
log.Error("SQLite3 health check failed with error: %v", "this Gitea binary is built without SQLite3 enabled") log.Error("SQLite3 health check failed with error: %v", "this Forgejo binary is built without SQLite3 enabled")
} else { } else {
if _, err := os.Stat(setting.Database.Path); err != nil { if _, err := os.Stat(setting.Database.Path); err != nil {
st.Status = fail st.Status = fail