diff options
Diffstat (limited to 'modules/doctor/misc.go')
-rw-r--r-- | modules/doctor/misc.go | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/modules/doctor/misc.go b/modules/doctor/misc.go index 8489a5ef41..9bee78303e 100644 --- a/modules/doctor/misc.go +++ b/modules/doctor/misc.go @@ -75,9 +75,14 @@ func checkHooks(ctx context.Context, logger log.Logger, autofix bool) error { } func checkUserStarNum(ctx context.Context, logger log.Logger, autofix bool) error { - if err := models.DoctorUserStarNum(); err != nil { - logger.Critical("Unable update User Stars numbers") - return err + if autofix { + if err := models.DoctorUserStarNum(); err != nil { + logger.Critical("Unable update User Stars numbers") + return err + } + logger.Info("Updated User Stars numbers.") + } else { + logger.Info("No check available for User Stars numbers (skipped)") } return nil } |