Fix logging of exception titles
このコミットが含まれているのは:
1 親
b6b39f4c8f
コミット
ea68ebe527
7ファイル変更
+18
-11
検索条件に一致するファイルはありません
@@ -30,12 +30,11 @@ public sealed class DebugAnalyticsService : IAnalyticsService
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public void Log(string title, Exception exception, params (string Property, object? Value)[]? data)
|
||||
public void Log(Exception exception, params (string Property, object? Value)[]? data)
|
||||
{
|
||||
StringBuilder builder = new();
|
||||
|
||||
builder.AppendLine($"[EXCEPTION]: \"{title}\"");
|
||||
builder.AppendLine($">> Type: \"{exception.GetType()}\"");
|
||||
builder.AppendLine($"[EXCEPTION]: \"{exception.GetType()}\"");
|
||||
builder.AppendLine(">> Stack trace");
|
||||
builder.AppendLine(exception.StackTrace);
|
||||
|
||||
|
||||
@@ -17,10 +17,9 @@ public interface IAnalyticsService
|
||||
void Log(string title, params (string Property, object? Value)[]? data);
|
||||
|
||||
/// <summary>
|
||||
/// Logs an exception with a specified title and optional properties.
|
||||
/// Logs an exception with optional properties.
|
||||
/// </summary>
|
||||
/// <param name="title">The title of the event to track.</param>
|
||||
/// <param name="exception">The exception that has been thrown.</param>
|
||||
/// <param name="data">The optional event properties.</param>
|
||||
void Log(string title, Exception exception, params (string Property, object? Value)[]? data);
|
||||
void Log(Exception exception, params (string Property, object? Value)[]? data);
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする