From 9cb6a20c6721e8e350685b451749237e55d44a3a Mon Sep 17 00:00:00 2001 From: Imran Ismail Date: Thu, 14 Apr 2022 08:12:07 +0800 Subject: [PATCH] Set log name --- proxy/proxy.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/proxy/proxy.go b/proxy/proxy.go index 071f2da..95b9474 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -42,6 +42,7 @@ import ( _ "github.com/imranismail/bff/bffstatus" _ "github.com/imranismail/bff/bffurl" _ "github.com/imranismail/bff/body" + "github.com/imranismail/bff/config" "github.com/imranismail/bff/logger" ) @@ -85,7 +86,7 @@ func Serve(cmd *cobra.Command, args []string) { os.Exit(1) } - log.Infof("martian: starting proxy on %s", listener.Addr().String()) + log.Infof("bff: starting proxy %s on %s", config.Version, listener.Addr().String()) go proxy.Serve(listener) @@ -94,7 +95,7 @@ func Serve(cmd *cobra.Command, args []string) { <-sigc - log.Infof("martian: shutting down") + log.Infof("bff: shutting down") } func configureProxy(proxy *martian.Proxy) {