From 72460b5bf0203c8bc7fa0df433567993b213c2cb Mon Sep 17 00:00:00 2001 From: wangjian Date: Fri, 21 Apr 2023 10:55:55 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BE=9D=E8=B5=96=E5=BA=93,?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/server.go | 2 +- config/config.yaml | 1 + go.mod | 10 +++++----- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/cmd/server.go b/cmd/server.go index ff0737c..6d4fb43 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -98,7 +98,7 @@ func NewStartCmd() *cobra.Command { } } // start mq service - log.Infof("%s Server has started!, pid: %d", os.Getpid()) + log.Infof("%s Server has started!, pid: %d", cfg.Name, os.Getpid()) go func() { err = mq.ListenAndServe() if err != nil { diff --git a/config/config.yaml b/config/config.yaml index 51af5d8..667ef6f 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -18,6 +18,7 @@ functions: - name: task-execute - name: dataset-request - name: capture-agent + - name: task-execute-log logging: path: ./logs prefix: mq-node diff --git a/go.mod b/go.mod index 0258f8c..4e4ca74 100644 --- a/go.mod +++ b/go.mod @@ -3,8 +3,8 @@ module hpds_mq go 1.19 require ( - git.hpds.cc/Component/network v0.0.0-20230405135741-a4ea724bab76 - git.hpds.cc/pavement/hpds_node v0.0.0-20230405153516-9403c4d01e12 + git.hpds.cc/Component/network v0.0.0-20230421024959-bf7300c92a95 + git.hpds.cc/pavement/hpds_node v0.0.0-20230421025304-47b7490878f0 github.com/hashicorp/consul/api v1.15.3 github.com/spf13/cobra v1.6.0 github.com/spf13/viper v1.13.0 @@ -70,10 +70,10 @@ require ( golang.org/x/crypto v0.4.0 // indirect golang.org/x/exp v0.0.0-20221205204356-47842c84f3db // indirect golang.org/x/mod v0.6.0 // indirect - golang.org/x/net v0.4.0 // indirect + golang.org/x/net v0.5.0 // indirect golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5 // indirect - golang.org/x/sys v0.3.0 // indirect - golang.org/x/text v0.5.0 // indirect + golang.org/x/sys v0.4.0 // indirect + golang.org/x/text v0.6.0 // indirect golang.org/x/tools v0.2.0 // indirect golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df // indirect google.golang.org/api v0.81.0 // indirect