diff --git a/external/grpc/grpc.go b/external/grpc/grpc.go index 6b81cd0..0dda84d 100644 --- a/external/grpc/grpc.go +++ b/external/grpc/grpc.go @@ -18,13 +18,13 @@ func InitPackage(config *occeg.GRPC) { if nil == config { return } - go func() { - conn, err := grpc.Dial(config.Address, grpc.WithInsecure()) - if nil != err { - logging.Logger().Panic(err) - } - grpcClient = oci.NewOverflowApiServerClient(conn) - }() + + conn, err := grpc.Dial(config.Address, grpc.WithInsecure()) + if nil != err { + logging.Logger().Panic(err) + } + grpcClient = oci.NewOverflowApiServerClient(conn) + logging.Logger().Infof("GRPC: connected to %s", config.Address) } func StartPackage(config *occeg.GRPC) { diff --git a/external/redis/redis.go b/external/redis/redis.go index af48abf..e6c8552 100644 --- a/external/redis/redis.go +++ b/external/redis/redis.go @@ -1,6 +1,7 @@ package redis import ( + "git.loafle.net/commons/logging-go" occer "git.loafle.net/overflow/commons-go/config/external/redis" "github.com/gomodule/redigo/redis" ) @@ -22,13 +23,13 @@ func InitPackage(config *occer.Redis) { return redis.Dial(config.Network, config.Address) }, } + logging.Logger().Infof("Redis: initialized [%s:%s]", config.Network, config.Address) } func StartPackage(config *occer.Redis) { if nil == config { return } - } func StopPackage(config *occer.Redis) {