File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import (
10
10
"Open_IM/internal/api/office"
11
11
apiThird "Open_IM/internal/api/third"
12
12
"Open_IM/internal/api/user"
13
+ "Open_IM/pkg/common/config"
13
14
"Open_IM/pkg/common/constant"
14
15
"Open_IM/pkg/common/log"
15
16
"Open_IM/pkg/utils"
@@ -30,6 +31,8 @@ func main() {
30
31
31
32
r := gin .Default ()
32
33
r .Use (utils .CorsHandler ())
34
+
35
+ log .Info ("load config: " , config .Config )
33
36
// user routing group, which handles user registration and login services
34
37
userRouterGroup := r .Group ("/user" )
35
38
{
Original file line number Diff line number Diff line change 1
1
package config
2
2
3
3
import (
4
- "fmt"
5
4
"io/ioutil"
6
5
"os"
7
6
"path/filepath"
@@ -420,5 +419,4 @@ func init() {
420
419
if err = yaml .Unmarshal (bytes , & Config ); err != nil {
421
420
panic (err .Error ())
422
421
}
423
- fmt .Println ("load config: " , Config )
424
422
}
You can’t perform that action at this time.
0 commit comments