Skip to content

Commit

Permalink
fix platformInfo logging
Browse files Browse the repository at this point in the history
  • Loading branch information
inada-s committed Jul 23, 2023
1 parent 3d23430 commit 97148c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gdxsv/lbs_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -1620,13 +1620,13 @@ var _ = register(lbsPlatformInfo, func(p *LbsPeer, m *LbsMessage) {
}
}

logger.Info("PlatformInfo", zap.Any("platform_info", p.PlatformInfo))
if isFirstTime && len(p.PlatformInfo) != 0 {
p.logger = p.logger.With(
zap.String("flycast", p.PlatformInfo["flycast"]),
zap.String("os", p.PlatformInfo["os"]),
zap.String("cpu", p.PlatformInfo["cpu"]),
)
p.logger.Info("PlatformInfo", zap.Any("platform_info", p.PlatformInfo))
}

if p.PlatformInfo["cpu"] == "x86/64" {
Expand Down

0 comments on commit 97148c6

Please sign in to comment.