From b83465db5ac92987f06676b64337bfee132128bd Mon Sep 17 00:00:00 2001 From: Nico Verbruggen Date: Sat, 1 Nov 2025 17:41:45 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20more=20comments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- phpmon/Domain/App/CrashReporter.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/phpmon/Domain/App/CrashReporter.swift b/phpmon/Domain/App/CrashReporter.swift index ccdbb33b..0ca2b72a 100644 --- a/phpmon/Domain/App/CrashReporter.swift +++ b/phpmon/Domain/App/CrashReporter.swift @@ -13,8 +13,11 @@ import AppKit class CrashReporter { + /** + Initializes the crash reporting toolkit. Keep in mind that this crash reporter only keeps track of crashes, + it does not automatically send information. I have my own API for my crash report ingest system. + */ static func initialize() { - if CrashReporter.isDebuggerAttached() { Log.err("[CrashReporter] The debugger is attached, won't start crash reporting.") return @@ -67,6 +70,7 @@ class CrashReporter { alert.close(with: .OK) }).runModal() + // Check the outcome of what the user chose if response == .abort { Log.warn("[CrashReporter] The user has chosen not to send the report.") crashReporter.purgePendingCrashReport()