Skip to content

Commit

Permalink
Log client version on startup (#1240)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlsmaycon authored Oct 24, 2023
1 parent 40bea64 commit 74ff261
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/internal/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
mgm "github.com/netbirdio/netbird/management/client"
mgmProto "github.com/netbirdio/netbird/management/proto"
signal "github.com/netbirdio/netbird/signal/client"
"github.com/netbirdio/netbird/version"
)

// RunClient with main logic.
Expand All @@ -43,6 +44,8 @@ func RunClientMobile(ctx context.Context, config *Config, statusRecorder *peer.S
}

func runClient(ctx context.Context, config *Config, statusRecorder *peer.Status, mobileDependency MobileDependency) error {
log.Infof("starting NetBird client version %s", version.NetbirdVersion())

backOff := &backoff.ExponentialBackOff{
InitialInterval: time.Second,
RandomizationFactor: 1,
Expand Down

0 comments on commit 74ff261

Please sign in to comment.