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