Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
docs: improve stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel authored Feb 8, 2023
1 parent c912625 commit b2ec980
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type bifrostGateway struct {
}

func newBifrostGateway(blockService blockservice.BlockService, routing routing.ValueStore) (*bifrostGateway, error) {
// Setup the DAG services, which use the CAR block store.
// Setup the DAG services, which use the special block store.
dagService := merkledag.NewDAGService(blockService)

// Setup the UnixFS resolver.
Expand Down
9 changes: 5 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func init() {
var rootCmd = &cobra.Command{
Use: "bifrost",
CompletionOptions: cobra.CompletionOptions{DisableDefaultCmd: true},
Short: "Eagle is a website CMS",
Short: "IPFS Gateway implementation for https://github.com/protocol/bifrost-infra",
RunE: func(cmd *cobra.Command, args []string) error {
saturnOrchestrator, _ := cmd.Flags().GetString("saturn-orchestrator")
saturnLogger, _ := cmd.Flags().GetString("saturn-logger")
Expand All @@ -68,8 +68,9 @@ var rootCmd = &cobra.Command{
go func() {
defer wg.Done()

log.Printf("Gateway listening on http://localhost:%d", gatewayPort)
log.Printf("Redirecting /api/v0 to %s", strings.Join(kuboRPC, " "))
log.Printf("Path gateway listening on http://127.0.0.1:%d", gatewayPort)
log.Printf("Subdomain gateway listening on dweb.link and http://localhost:%d", gatewayPort)
log.Printf("Legacy RPC at /api/v0 provided by %s", strings.Join(kuboRPC, " "))
err := gatewaySrv.ListenAndServe()
if err != nil && !errors.Is(err, http.ErrServerClosed) {
log.Printf("Failed to start gateway: %s", err)
Expand All @@ -79,7 +80,7 @@ var rootCmd = &cobra.Command{

go func() {
defer wg.Done()
log.Printf("Metrics listening on http://127.0.0.1:%d", metricsPort)
log.Printf("Metrics exposed at http://127.0.0.1:%d/debug/metrics/prometheus", metricsPort)
err := metricsSrv.ListenAndServe()
if err != nil && !errors.Is(err, http.ErrServerClosed) {
log.Printf("Failed to start metrics: %s", err)
Expand Down

0 comments on commit b2ec980

Please sign in to comment.