Skip to content

Commit

Permalink
Updated logging
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Feb 12, 2024
1 parent 416b858 commit 36ba850
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private void RenameAndValidateExtraExceptionProperties(string? id, JObject error

if (json.Length > 200000)
{
_logger.LogError("__ExceptionInfo on {id} is Too Big: {Length}", id, json.Length);
_logger.LogError("__ExceptionInfo on {Id} is Too Big: {Length}", id, json.Length);
return;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Exceptionless.Core.Models;
using Exceptionless.Core.Models;
using Microsoft.Extensions.Logging;

namespace Exceptionless.Core.Plugins.Formatting;
Expand Down Expand Up @@ -44,7 +44,7 @@ public SummaryData GetEventSummaryData(PersistentEvent ev)
}
catch (Exception ex)
{
_logger.LogError(ex, "Error calling GetEventSummaryHtml for Event {id} in plugin {PluginName}: {Message}", ev.Id, plugin.Name, ex.Message);
_logger.LogError(ex, "Error calling GetEventSummaryHtml for Event {Id} in plugin {PluginName}: {Message}", ev.Id, plugin.Name, ex.Message);
}
}

Expand All @@ -66,7 +66,7 @@ public string GetStackTitle(PersistentEvent ev)
}
catch (Exception ex)
{
_logger.LogError(ex, "Error calling GetStackTitle for Event {id} in plugin {PluginName}: {Message}", ev.Id, plugin.Name, ex.Message);
_logger.LogError(ex, "Error calling GetStackTitle for Event {Id} in plugin {PluginName}: {Message}", ev.Id, plugin.Name, ex.Message);
}
}

Expand All @@ -88,7 +88,7 @@ public MailMessageData GetEventNotificationMailMessageData(PersistentEvent ev, b
}
catch (Exception ex)
{
_logger.LogError(ex, "Error calling GetEventNotificationMailMessage for Event {id} in plugin {PluginName}: {Message}", ev.Id, plugin.Name, ex.Message);
_logger.LogError(ex, "Error calling GetEventNotificationMailMessage for Event {Id} in plugin {PluginName}: {Message}", ev.Id, plugin.Name, ex.Message);
}
}

Expand All @@ -110,7 +110,7 @@ public SlackMessage GetSlackEventNotificationMessage(PersistentEvent ev, Project
}
catch (Exception ex)
{
_logger.LogError(ex, "Error calling GetSlackEventNotificationMessage for Event {id} in plugin {PluginName}: {Message}", ev.Id, plugin.Name, ex.Message);
_logger.LogError(ex, "Error calling GetSlackEventNotificationMessage for Event {Id} in plugin {PluginName}: {Message}", ev.Id, plugin.Name, ex.Message);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Exceptionless.Core/Services/SlackService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public async Task<bool> SendEventNoticeAsync(PersistentEvent ev, Project project
var message = _pluginManager.GetSlackEventNotificationMessage(ev, project, isCritical, isNew, isRegression);
if (message is null)
{
_logger.LogWarning("Unable to create event notification slack message for event {id}.", ev.Id);
_logger.LogWarning("Unable to create event notification slack message for event {Id}", ev.Id);
return false;
}

Expand Down

0 comments on commit 36ba850

Please sign in to comment.