Skip to content

Commit 6efe13d

Browse files
committed
log
1 parent 0a8fdc6 commit 6efe13d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cmd/open_im_api/main.go

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"Open_IM/internal/api/office"
1111
apiThird "Open_IM/internal/api/third"
1212
"Open_IM/internal/api/user"
13+
"Open_IM/pkg/common/config"
1314
"Open_IM/pkg/common/constant"
1415
"Open_IM/pkg/common/log"
1516
"Open_IM/pkg/utils"
@@ -30,6 +31,8 @@ func main() {
3031

3132
r := gin.Default()
3233
r.Use(utils.CorsHandler())
34+
35+
log.Info("load config: ", config.Config)
3336
// user routing group, which handles user registration and login services
3437
userRouterGroup := r.Group("/user")
3538
{

pkg/common/config/config.go

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package config
22

33
import (
4-
"fmt"
54
"io/ioutil"
65
"os"
76
"path/filepath"
@@ -420,5 +419,4 @@ func init() {
420419
if err = yaml.Unmarshal(bytes, &Config); err != nil {
421420
panic(err.Error())
422421
}
423-
fmt.Println("load config: ", Config)
424422
}

0 commit comments

Comments
 (0)