Skip to content

Commit 60712d1

Browse files
author
myxy99
committed
log
1 parent 530c03b commit 60712d1

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

datasource/manager/manager.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"errors"
55
"fmt"
66
"github.com/coder2z/g-saber/xcfg"
7-
"github.com/coder2z/g-saber/xlog"
7+
"github.com/coder2z/g-saber/xconsole"
88
"github.com/coder2z/g-server/datasource/apollo"
99
"github.com/coder2z/g-server/datasource/etcdv3"
1010
"github.com/coder2z/g-server/datasource/file"
@@ -58,12 +58,7 @@ func NewDataSource(configAddr string) (xcfg.DataSource, error) {
5858
if !exist {
5959
return nil, ErrInvalidDataSource
6060
}
61-
//"Get xcfg from:", configAddr
62-
xlog.Info("Application Starting",
63-
xlog.FieldComponentName("manager"),
64-
xlog.FieldMethod("manager.NewDataSource"),
65-
xlog.FieldDescription(fmt.Sprintf("Get xcfg from:%s", configAddr)),
66-
)
61+
xconsole.Green(fmt.Sprintf("Get xcfg from:%s", configAddr))
6762
source := creatorFunc()
6863
if source == nil {
6964
return nil, ErrInvalidDataSource

0 commit comments

Comments
 (0)