Better logging.

This commit is contained in:
Vladimir Chebotarev 2021-04-13 12:09:03 +03:00
parent 10bf56e540
commit cf903d526c

View File

@ -63,6 +63,9 @@ bool ReadBufferFromS3::nextImpl()
{
ProfileEvents::increment(ProfileEvents::S3ReadRequestsErrors, 1);
LOG_INFO(log, "Caught exception while reading S3 object. Bucket: {}, Key: {}, Offset: {}, Remaining attempts: {}, Message: {}",
bucket, key, getPosition(), attempt, e.message());
impl.reset();
offset = getPosition();