Skip to content

Commit

Permalink
main: log avx2
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl committed Mar 27, 2024
1 parent ec22ddc commit e66f389
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/renterd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (
"go.sia.tech/renterd/worker"
"go.sia.tech/web/renterd"
"go.uber.org/zap"
"golang.org/x/sys/cpu"
"golang.org/x/term"
"gopkg.in/yaml.v3"
"gorm.io/gorm/logger"
Expand Down Expand Up @@ -485,6 +486,9 @@ func main() {
defer closeFn(context.Background())

logger.Info("renterd", zap.String("version", build.Version()), zap.String("network", build.NetworkName()), zap.String("commit", build.Commit()), zap.Time("buildDate", build.BuildTime()))
if runtime.GOARCH == "amd64" && !cpu.X86.HasAVX2 {
logger.Warn("renterd is running on a system without AVX2 support, performance may be degraded")
}

// configure database logger
dbLogCfg := cfg.Log.Database
Expand Down

0 comments on commit e66f389

Please sign in to comment.