Skip to content

Commit

Permalink
Log on parsing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
espadolini committed May 24, 2024
1 parent e851c12 commit dc1c97b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/auth/grpcserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -5188,7 +5188,11 @@ func NewGRPCServer(cfg GRPCServerConfig) (*GRPCServer, error) {
}

if en := os.Getenv("TELEPORT_UNSTABLE_CREATEAUDITSTREAM_INFLIGHT_LIMIT"); en != "" {
inflightLimit, _ := strconv.ParseInt(en, 10, 64)
inflightLimit, err := strconv.ParseInt(en, 10, 64)
if err != nil {
log.Error("Failed to parse the TELEPORT_UNSTABLE_CREATEAUDITSTREAM_INFLIGHT_LIMIT envvar, limit will not be enforced.")
inflightLimit = -1
}
metrics.RegisterPrometheusCollectors(
createAuditStreamAcceptedTotalMetric,
createAuditStreamRejectedTotalMetric,
Expand Down

0 comments on commit dc1c97b

Please sign in to comment.