From 73d0f38564062804c0e5ef6087633578c3cedab7 Mon Sep 17 00:00:00 2001 From: anurse Date: Tue, 22 Oct 2013 16:16:35 -0700 Subject: [PATCH] Fix #1655 by only logging Verbose messages from ContentService. --- src/NuGetGallery/Services/ContentService.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/NuGetGallery/Services/ContentService.cs b/src/NuGetGallery/Services/ContentService.cs index 23de4d1032..aa7c644842 100644 --- a/src/NuGetGallery/Services/ContentService.cs +++ b/src/NuGetGallery/Services/ContentService.cs @@ -65,10 +65,10 @@ private async Task GetContentItemCore(string name, TimeSpan expiresI ContentItem item = null; if (ContentCache.TryGetValue(name, out item) && DateTime.UtcNow < item.ExpiryUtc) { - Trace.Information("Cache Valid. Expires at: " + item.ExpiryUtc.ToString()); + Trace.Verbose("Cache Valid. Expires at: " + item.ExpiryUtc.ToString()); return item.Content; } - Trace.Information("Cache Expired."); + Trace.Verbose("Cache Expired."); // Get the file from the content service string fileName = name + ContentFileExtension; @@ -85,26 +85,26 @@ private async Task GetContentItemCore(string name, TimeSpan expiresI HtmlString result = new HtmlString(String.Empty); if (reference == null) { - Trace.Error("Requested Content File Not Found: " + fileName); + Trace.Verbose("Requested Content File Not Found: " + fileName); } else { // Check the content ID to see if it's different if (item != null && String.Equals(item.ContentId, reference.ContentId, StringComparison.Ordinal)) { - Trace.Information("No change to content item. Using Cache"); + Trace.Verbose("No change to content item. Using Cache"); // No change, just use the cache. result = item.Content; } else { // Process the file - Trace.Information("Content Item changed. Updating..."); + Trace.Verbose("Content Item changed. Updating..."); using (var stream = reference.OpenRead()) { if (stream == null) { - Trace.Error("Requested Content File Not Found: " + fileName); + Trace.Verbose("Requested Content File Not Found: " + fileName); reference = null; } else