Skip to content

Commit

Permalink
Fix readme appcenter section
Browse files Browse the repository at this point in the history
  • Loading branch information
roubachof authored Feb 2, 2024
1 parent 62638eb commit b2bb3c6
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,21 +220,29 @@ If your configuration has a file target, you can then retrieve your compressed l
{
#if RELEASE
Crashes.GetErrorAttachments = report =>
{
var task = GetErrorAttachmentsAsync(report);
task.RunSynchronously();
return task.Result;
};

async Task<IEnumerable<ErrorAttachmentLog>> GetErrorAttachmentsAsync(ErrorReport report)
{
if (!LogOperatorRetriever.Instance.TryGetOperator<ILogCompressor>(out var logCompressor))
{
return;
return Array.Empty<ErrorAttachmentLog>();
}
var compressedLogs = logCompressor.GetCompressedLogs();


var compressedLogs = await logCompressor.GetCompressedLogs();

return new[]
{
ErrorAttachmentLog.AttachmentWithBinary(
compressedLogs.ToArray(),
"logs.zip",
"application/x-zip-compressed"),
};
};
}
#endif
}
```
Expand Down

0 comments on commit b2bb3c6

Please sign in to comment.