Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
willzhen committed May 6, 2022
1 parent 0822599 commit b84dccf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ func main() {

config.GetLogger().Sugar().Infof("agent serving on: %d", config.Get().Port)
http.Handle("/", service.BuildProxy(context.Background(), config.Get().Routes))
http.ListenAndServe(fmt.Sprintf(":%d", config.Get().Port), nil)
if err := http.ListenAndServe(fmt.Sprintf(":%d", config.Get().Port), nil); err != nil {
config.GetLogger().Sugar().Errorf("anegt start error: %v", err)
}
}

0 comments on commit b84dccf

Please sign in to comment.