From d7a599c750c82414cef64d3b5dd05b7ffc5832eb Mon Sep 17 00:00:00 2001 From: Joen Tolgraven Date: Fri, 29 Dec 2023 10:08:36 +0000 Subject: [PATCH] Fix readme initialization example It was not working for me the way it was, logCompressor always null --- README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 0d7144e..a69529f 100644 --- a/README.md +++ b/README.md @@ -219,13 +219,12 @@ If your configuration has a file target, you can then retrieve your compressed l private void InitializeAppCenter() { #if RELEASE - if (!LogOperatorRetriever.Instance.TryGetOperator(out var logCompressor)) - { - return; - } - Crashes.GetErrorAttachments = report => - { + { + if (!LogOperatorRetriever.Instance.TryGetOperator(out var logCompressor)) + { + return; + } var compressedLogs = logCompressor.GetCompressedLogs(); return new[]