Skip to content

Commit

Permalink
shortlink-api-ws: improve logger about start service
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Login <batazor@evrone.com>
  • Loading branch information
batazor committed Jun 17, 2023
1 parent 0430105 commit 5a47573
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import (
"github.com/spf13/viper"
"golang.org/x/sync/errgroup"

"github.com/shortlink-org/shortlink/internal/pkg/logger/field"

"github.com/shortlink-org/shortlink/internal/pkg/logger"
)

Expand All @@ -29,7 +31,10 @@ func (ws *WS) Run(ctx context.Context, log logger.Logger) (*WS, error) {
return nil
})

log.Info("WS server started")
log.Info("WS server started", field.Fields{
"port": 8080,
"base_path": viper.GetString("BASE_PATH"),
})

return server, nil
}

0 comments on commit 5a47573

Please sign in to comment.