Skip to content

Commit d49dbc4

Browse files
committed
Change severity of logs about product id not found to ERROR
1 parent f141b71 commit d49dbc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/productcatalogservice/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ func (p *productCatalog) GetProduct(ctx context.Context, req *pb.GetProductReque
306306
msg := fmt.Sprintf("Product Not Found: %s", req.Id)
307307
span.SetStatus(otelcodes.Error, msg)
308308
span.AddEvent(msg)
309-
log.WithContext(ctx).WithField("request.id", req.Id).Println("Product Not Found")
309+
log.WithContext(ctx).WithField("request.id", req.Id).Error("Product Not Found")
310310
return nil, status.Errorf(codes.NotFound, msg)
311311
}
312312

0 commit comments

Comments
 (0)