File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,21 @@ import (
99 "github.com/pocketbase/pocketbase/core"
1010)
1111
12- var instance core.App
13-
14- var intanceOnce sync.Once
12+ var (
13+ instance core.App
14+ intanceOnce sync.Once
15+ )
1516
1617func GetApp () core.App {
1718 intanceOnce .Do (func () {
18- instance = pocketbase .NewWithConfig (pocketbase.Config {
19+ pb : = pocketbase .NewWithConfig (pocketbase.Config {
1920 HideStartBanner : true ,
2021 })
22+
23+ pb .RootCmd .Flags ().MarkHidden ("encryptionEnv" )
24+ pb .RootCmd .Flags ().MarkHidden ("queryTimeout" )
25+
26+ instance = pb
2127 })
2228
2329 return instance
Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ func main() {
6464
6565 app .OnTerminate ().BindFunc (func (e * core.TerminateEvent ) error {
6666 routes .Unregister ()
67- slog .Info ("[CERTIMATE] Exit!" )
6867 return e .Next ()
6968 })
7069
You can’t perform that action at this time.
0 commit comments