We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6fb35b commit 8c1c717Copy full SHA for 8c1c717
1 file changed
telescope_provider.go
@@ -4,6 +4,7 @@ import (
4
"bytes"
5
"encoding/json"
6
"github.com/gin-gonic/gin"
7
+ "github.com/go-home-admin/home/app"
8
uuid "github.com/satori/go.uuid"
9
"github.com/sirupsen/logrus"
10
"gorm.io/gorm"
@@ -24,8 +25,15 @@ type Providers struct {
24
25
}
26
27
func (t *Providers) Init() {
- t.isOpen = true
28
- t.SetLog()
+ if app.IsDebug() {
29
+ t.isOpen = true
30
+ }
31
+}
32
+
33
+func (t *Providers) Boot() {
34
+ if t.isOpen {
35
+ t.SetLog()
36
37
38
39
func (t *Providers) IsEnable() bool {
0 commit comments