From 96da3ae5631d787e307aea0e44089c7829ccf8e8 Mon Sep 17 00:00:00 2001 From: wangjian Date: Sun, 26 Mar 2023 23:07:49 +0800 Subject: [PATCH] fix --- cmd/server.go | 1 + config/config.yaml | 13 ++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/cmd/server.go b/cmd/server.go index 53ceb1f..d10edf0 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -80,6 +80,7 @@ func NewStartCmd() *cobra.Command { signal.Notify(c, syscall.SIGINT, syscall.SIGTERM) }(exitChannel) mq, err := hpds_node.NewMq(configFileFlag) + must(err) mq.InitOptions(hpds_node.WithAuth("token", cfg.Token)) defer mq.Close() diff --git a/config/config.yaml b/config/config.yaml index 5f10d79..29f2122 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -15,4 +15,15 @@ functions: - name: echo-sf - name: task-request - name: task-response - - name: task-execute \ No newline at end of file + - name: task-execute +logging: + path: ./logs + prefix: mq-node + errorFileSuffix: error.log + warnFileSuffix: warn.log + infoFileSuffix: info.log + debugFileSuffix: debug.log + maxSize: 100 + maxBackups: 3000 + maxAge: 30 + development: true