Descellate Usage Error to Debug (#3780)

This commit is contained in:
Matt Robinson 2020-04-03 07:20:20 -04:00 committed by GitHub
parent 06cddb053e
commit 4b01a8dd18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1704,7 +1704,7 @@ func (endpoint *Endpoint) makeInlineSegment(ctx context.Context, req *pb.Segment
return nil, nil, rpcstatus.Error(rpcstatus.Internal, err.Error())
}
if exceeded {
endpoint.log.Sugar().Errorf("monthly project limits are %s of storage and bandwidth usage. This limit has been exceeded for storage for projectID %s.",
endpoint.log.Sugar().Debugf("monthly project limits are %s of storage and bandwidth usage. This limit has been exceeded for storage for projectID %s.",
limit, keyInfo.ProjectID,
)
return nil, nil, rpcstatus.Error(rpcstatus.ResourceExhausted, "Exceeded Usage Limit")