cmd/*: Change loglevel from error to warn (#2876)

This commit is contained in:
Stefan Benten 2019-08-27 11:24:47 +02:00 committed by Michal Niewrzal
parent a250551b6d
commit d0ab3c03ec
4 changed files with 4 additions and 4 deletions

View File

@ -109,7 +109,7 @@ func cmdRun(cmd *cobra.Command, args []string) (err error) {
}
if err := process.InitMetricsWithCertPath(ctx, log, nil, runCfg.Identity.CertPath); err != nil {
zap.S().Error("Failed to initialize telemetry batcher: ", err)
zap.S().Warn("Failed to initialize telemetry batcher: ", err)
}
err = db.CreateTables()

View File

@ -137,7 +137,7 @@ func cmdRun(cmd *cobra.Command, args []string) (err error) {
ctx := process.Ctx(cmd)
if err := process.InitMetrics(ctx, zap.L(), nil, ""); err != nil {
zap.S().Error("Failed to initialize telemetry batcher: ", err)
zap.S().Warn("Failed to initialize telemetry batcher: ", err)
}
err = version.CheckProcessVersion(ctx, zap.L(), runCfg.Version, version.Build, "Gateway")

View File

@ -152,7 +152,7 @@ func cmdRun(cmd *cobra.Command, args []string) (err error) {
}
if err := process.InitMetricsWithCertPath(ctx, log, nil, runCfg.Identity.CertPath); err != nil {
zap.S().Error("Failed to initialize telemetry batcher: ", err)
zap.S().Warn("Failed to initialize telemetry batcher: ", err)
}
err = db.CreateTables()

View File

@ -161,7 +161,7 @@ func cmdRun(cmd *cobra.Command, args []string) (err error) {
}
if err := process.InitMetricsWithCertPath(ctx, log, nil, runCfg.Identity.CertPath); err != nil {
zap.S().Error("Failed to initialize telemetry batcher: ", err)
zap.S().Warn("Failed to initialize telemetry batcher: ", err)
}
err = db.CreateTables()