Skip to content

Commit

Permalink
Set log name
Browse files Browse the repository at this point in the history
  • Loading branch information
imranismail committed Apr 14, 2022
1 parent 3260240 commit 9cb6a20
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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)

Expand All @@ -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) {
Expand Down

0 comments on commit 9cb6a20

Please sign in to comment.