Skip to content

Commit 55d25b8

Browse files
committed
don't use Fatal to avoid breaking
1 parent 4a38adf commit 55d25b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

custom/conf/app.example.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ LEVEL = Info
774774
;ALLOW_ONLY_EXTERNAL_REGISTRATION = false
775775
;;
776776
;; User must sign in to view anything.
777-
;; It could be set to "expensive" to block anonymous users accessing some pages which consume a lot of resources,
777+
;; After 1.23.7, it could be set to "expensive" to block anonymous users accessing some pages which consume a lot of resources,
778778
;; for example: block anonymous AI crawlers from accessing repo code pages.
779779
;; The "expensive" mode is experimental and subject to change.
780780
;REQUIRE_SIGNIN_VIEW = false

modules/setting/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func loadServiceFrom(rootCfg ConfigProvider) {
168168
// non-boolean value only supports "expensive" at the moment
169169
Service.BlockAnonymousAccessExpensive = s == "expensive"
170170
if !Service.BlockAnonymousAccessExpensive {
171-
log.Fatal("Invalid config option: REQUIRE_SIGNIN_VIEW = %s", s)
171+
log.Error("Invalid config option: REQUIRE_SIGNIN_VIEW = %s", s)
172172
}
173173
}
174174

0 commit comments

Comments
 (0)