We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6633e4b commit 52ea469Copy full SHA for 52ea469
cmd/lighthouse/main.go
@@ -18,6 +18,7 @@ import (
18
"crdx.org/lighthouse/db"
19
"crdx.org/lighthouse/db/repo/settingR"
20
"crdx.org/lighthouse/pkg/env"
21
+ "crdx.org/lighthouse/pkg/logger"
22
"crdx.org/lighthouse/pkg/util"
23
"crdx.org/lighthouse/pkg/util/mailutil"
24
"crdx.org/lighthouse/pkg/util/timeutil"
@@ -69,6 +70,8 @@ func main() {
69
70
})
71
}
72
73
+ logger.Init()
74
+
75
config.InitMiddleware(app, &assets)
76
config.InitRoutes(app)
77
pkg/logger/logger.go
@@ -16,6 +16,10 @@ var (
16
mutex sync.Mutex
17
)
+func Init() {
+ Get()
+}
func Get() *slog.Logger {
mutex.Lock()
25
defer mutex.Unlock()
0 commit comments