diff --git a/oak-blob-cloud-azure/src/main/java/org/apache/jackrabbit/oak/blob/cloud/azure/blobstorage/AzureBlobStoreBackend.java b/oak-blob-cloud-azure/src/main/java/org/apache/jackrabbit/oak/blob/cloud/azure/blobstorage/AzureBlobStoreBackend.java index 0534aaef3d..8f481274a5 100644 --- a/oak-blob-cloud-azure/src/main/java/org/apache/jackrabbit/oak/blob/cloud/azure/blobstorage/AzureBlobStoreBackend.java +++ b/oak-blob-cloud-azure/src/main/java/org/apache/jackrabbit/oak/blob/cloud/azure/blobstorage/AzureBlobStoreBackend.java @@ -92,6 +92,8 @@ public class AzureBlobStoreBackend extends AbstractSharedBackend { private static final Logger LOG = LoggerFactory.getLogger(AzureBlobStoreBackend.class); + private static final Logger LOG_STREAMS = LoggerFactory.getLogger("oak.datastore.download.streams"); + private static final String META_DIR_NAME = "META"; private static final String META_KEY_PREFIX = META_DIR_NAME + "/"; @@ -217,6 +219,10 @@ public class AzureBlobStoreBackend extends AbstractSharedBackend { InputStream is = blob.openInputStream(); LOG.debug("Got input stream for blob. identifier={} duration={}", key, (System.currentTimeMillis() - start)); + if (LOG_STREAMS.isDebugEnabled()) { + // Log message, with exception so we can get a trace to see where the call came from + LOG_STREAMS.debug("binary downloaded from Azure Blob Storage: " + identifier, new Exception()); + } return is; } catch (StorageException e) { @@ -1184,11 +1190,9 @@ public class AzureBlobStoreBackend extends AbstractSharedBackend { if (isMeta) { id = addMetaKeyPrefix(getIdentifier().toString()); } - if (LOG.isDebugEnabled()) { - // Log message, with exception so we can get a trace to see where the call - // came from - LOG.debug("binary downloaded from Azure Blob Storage: " + getIdentifier(), - new Exception()); + if (LOG_STREAMS.isDebugEnabled()) { + // Log message, with exception so we can get a trace to see where the call came from + LOG_STREAMS.debug("binary downloaded from Azure Blob Storage: " + getIdentifier(), new Exception()); } try { return container.getBlockBlobReference(id).openInputStream();