You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 10, 2017. It is now read-only.
Copy file name to clipboardExpand all lines: src/Sitecore.Azure.Diagnostics/Storage/AzureBlobStorageProvider.cs
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -209,8 +209,8 @@ protected string Encoding
209
209
/// <param name="config">A collection of the name/value pairs representing the provider-specific attributes specified in the configuration for this provider.</param>
Log.Warn(string.Format("Scheduling.BlobsCleanupAgent: The 'maxAge' attribute equals to '{0:dd\\.hh\\:mm\\:ss}'. All blobs will be deleted imitatively.",TimeSpan.Zero),this);
54
+
Log.Warn($"Scheduling.BlobsCleanupAgent: The 'maxAge' attribute equals to '{TimeSpan.Zero:dd\\.hh\\:mm\\:ss}'. All blobs will be deleted imitatively.",this);
55
55
}
56
56
}
57
57
@@ -87,7 +87,7 @@ public virtual void Execute()
87
87
}
88
88
else
89
89
{
90
-
Log.Warn(string.Format("Scheduling.BlobsCleanupAgent: The '{0}' cloud blob container has not been found.",container.Name),this);
90
+
Log.Warn($"Scheduling.BlobsCleanupAgent: The '{container.Name}' cloud blob container has not been found.",this);
Log.Info(string.Format("Scheduling.BlobsCleanupAgent: The '{0}' cloud blob container does not have any out-to-date blobs that match the '{1}' search pattern.",container.Name,this.BlobSearchPattern),this);
111
+
Log.Info($"Scheduling.BlobsCleanupAgent: The '{container.Name}' cloud blob container does not have any out-to-date blobs that match the '{this.BlobSearchPattern}' search pattern.",this);
Log.Info(string.Format("Scheduling.BlobsCleanupAgent: The '{0}' cloud blob container includes '{1}' blobs that match the '{2}' search pattern.",container.Name,blobList.Count(),searchPattern),this);
127
+
Log.Info($"Scheduling.BlobsCleanupAgent: The '{container.Name}' cloud blob container includes '{blobList.Count()}' blobs that match the '{searchPattern}' search pattern.",this);
Log.Info(string.Format("Scheduling.BlobsCleanupAgent: The '{0}' cloud blob container includes '{1}' out-to-date blobs that match the '{2}' search pattern.",container.Name,candidateBlobList.Count(),searchPattern),this);
146
+
Log.Info($"Scheduling.BlobsCleanupAgent: The '{container.Name}' cloud blob container includes '{candidateBlobList.Count()}' out-to-date blobs that match the '{searchPattern}' search pattern.",this);
Log.Info(string.Format("Scheduling.BlobsCleanupAgent: The '{0}' cloud blob is being deleted by cleanup task (Last Modified UTC Date: '{1}', Age: '{2:dd\\.hh\\:mm\\:ss}', Max allowed age: '{3}'.",
Log.Info($"Scheduling.BlobsCleanupAgent: The '{blob.Name}' cloud blob is being deleted by cleanup task (Last Modified UTC Date: '{this.GetBlobLastModifiedDate(blob)}', Age: '{age:dd\\.hh\\:mm\\:ss}', Max allowed age: '{this.maxAge}'.",this);
Copy file name to clipboardExpand all lines: src/Sitecore.Azure.Diagnostics/Tasks/BlobsCleanupAgent.cs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ public BlobsCleanupAgent()
40
40
/// </summary>
41
41
publicvirtualvoidRun()
42
42
{
43
-
this.LogInfo(string.Format("Scheduling.BlobsCleanupAgent: Started. The BlobCleaner count is '{0}'.",this.blobsCleaners.Count));
43
+
this.LogInfo($"Scheduling.BlobsCleanupAgent: Started. The BlobCleaner count is '{this.blobsCleaners.Count}'.");
44
44
45
45
foreach(IBlobCleanercleanerinthis.blobsCleaners)
46
46
{
@@ -50,7 +50,7 @@ public virtual void Run()
50
50
}
51
51
catch(Exceptionexception)
52
52
{
53
-
Log.Error(string.Format("Scheduling.BlobsCleanupAgent: Exception occurred while cleaning the '{0}' cloud blob container.",cleaner.ContainerName),exception,this);
53
+
Log.Error($"Scheduling.BlobsCleanupAgent: Exception occurred while cleaning the '{cleaner.ContainerName}' cloud blob container.",exception,this);
0 commit comments